Plupload Onload shows a list of uploaded files
I am using Plupload File Plugin http://www.plupload.com/ . I spent a lot of time searching on google and forums but couldn't find one. I also read the documentation for this plugin but no luck. My problem is that I want to show all the previous loaded images on window load. Here is my code. Please let me know if there is an opportunity or an opportunity out there, thanks:
<pre>
$("#uploader").plupload({
// General settings
runtimes: 'html5,flash,silverlight,html4',
//url: {{ URL::asset('assets/js/plupload-2.1.2/examples/upload.php') }},
//url: '../upload.php',
url: "{{ URL::asset('assets/js/plupload-2.1.2/examples/upload.php') }}",
// User can upload no more then 20 files in one go (sets multiple_queues to false)
max_file_count: 200,
chunk_size: '200mb',
// Resize images on clientside if we can
// resize: {
// width: 200,
// height: 200,
// quality: 90,
// crop: false // 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,gif,bmp,png"}
]
},
// Rename files by clicking on their titles
rename: false,
// 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: "{{ URL::asset('assets/js/plupload-2.1.2/js/Moxie.swf') }}",
// Silverlight settings
silverlight_xap_url: "{{ URL::asset('assets/js/plupload-2.1.2/js/Moxie.xap') }}"
});
</pre>
+3
source to share
1 answer
pl upload has an init parameter, and in this option you can change the ways of uploading files like ...
$("#uploader").plupload({
....
....
init: {
FilesAdded: function (up, files) {
},
FileUploaded: function (up, file, response) {
},
UploadComplete: function (up, files) {
}
.....
}
});
you can use these methods to put your uploaded files in your list.
-2
source to share