1701software / Plupload_Xojo

Plupload HTML web upload control for Xojo Web.
MIT License
1 stars 0 forks source link

"plupload is not a function" Bug #1

Open 1ubuntuuser opened 7 years ago

1ubuntuuser commented 7 years ago

I launched the test application and clicked Show Uploader. It would seem the library is not loading into the browser.

Ubuntu 16.04 Xojo 2017R1 Firefox

Could not execute returned javascript: $(...).plupload is not a function
Source: $("#UTvkA980_body").plupload({

// General settings
runtimes : 'html5,flash,silverlight,html4',
url : 'http://localhost:8888/upload.php?directory=uploads%2F',

// User can upload no more then 20 files in one go (sets multiple_queues to false)
max_file_count: 20,

chunk_size: '1mb',

// Resize images on clientside if we can
resize : {
width : 200,
height : 200, 
quality : 90,
crop: true // crop to exact dimensions
},

filters : {
// Maximum file size
max_file_size : '1000mb',
// Specify what files to browse for
mime_types: [
{title : "Image files", extensions : "jpg,jpeg,gif,png"},
{title : "PDF files", extensions : "pdf"},
{title : "Zip files", extensions : "zip"},
]
},

// Rename files by clicking on their titles
rename: true,

// Sort files
sortable: true,

// Enable ability to drag'n'drop files onto the widget (currently only HTML5 supports that)
dragdrop: true,

// Views to activate
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},

// Flash settings
flash_swf_url : 'http://localhost:8888/js/Moxie.swf',

// Silverlight settings
silverlight_xap_url : 'http://localhost:8888/js/Moxie.xap'

});

$('#UTvkA980_body').on('complete', function() {
alert("Your files were successfully uploaded.");
location.hash = 'upload_complete';
});
1ubuntuuser commented 7 years ago

This issue has been discussed on the Xojo Forum. Please discard. I know nothing about running a php server. I guess it's time to learn! https://forum.xojo.com/41644-open-source-upload-control-for-xojo-web

1ubuntuuser commented 7 years ago

All up and running thanks! I hosted a php server very easily with XAMPP