ronniesan / uploadify Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin for file uploads.
License: MIT License
A jQuery plugin for file uploads.
License: MIT License
the "SELECT FILES" button and the "Upload Files" button don't match not a big problem tho
HI, just wondering if this project was still being maintained? I have a few new features/bugs I'd like to fix?
I was using -
If I set uploadLimit to 3 for example, then I select a file with not allowed type, and a normal file and upload those, it just uploads the normal one, then I select 3 other files and it just uploads those 3 as well while total is 4 then and not the limit 3
The values for the accept attribute of an input element must be separated using commas:
<input type='file' accept='mime-1, mime-2'>
So Line 87 must be: file_types = settings.fileType.split(',');
For common mime types see:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
Cheers
Hi,
I just migrated from uploadify to uploadifive to get rid of the flash usage, and everything works fine except from the event 'onQueueComplete' :-/
Of course I checked the code intended for the event; it works fine with other events like 'onUploadComplete'. There must be a bug... somewhere.
Regards
Would it be possible to upload folders?
On successful single upload file.xhr.responseText returns
true{"error":"","imageid":564443,"name":"XGLQ0XJW.JPG","width":600,"height":450}
Where did the true comes from?
Kind Regards,
Edgar Brignoni
Hi!
Assuming the script is used with the 'fileType'
parameter set as '.jpg,.jpeg,.gif,.png'
like in the Sample file, when sending an image named, let's say, IMG_4567.JPG, the javascript will reject the file, applying the status "Forbidden File Type" to it.
To correct this, this part of the javascript file:
// Create an array of file types
var file_types;
if (settings.fileType) {
file_types = settings.fileType.split(',');
}
Could simply be changed to:
// Create an array of file types
var file_types;
if (settings.fileType) {
file_types = settings.fileType.split(',');
file_types = $.merge( $.merge( [], file_types ), file_types.map(item => item.toUpperCase() ));
}
This way, files can be treated whether their name is "IMG_4567.jpg" or "IMG_4567.JPG".
That probably got forgotten on the way, as the equivalent is done in the PHP file, so there's no need to modify anything in it for the bug to be fixed.
I use jquery.uploadifive.js is fine, but got an error from jquery.uploadifive.min.js
jquery.uploadifive.min.js:6 Uncaught TypeError: Cannot set property '$e' of undefined
d.Je.$e = function(e) {
if (o[e]) {
return o[e].apply(this, Array.prototype.slice.call(arguments, 1))
} else if (typeof e === "object" || !e) {
return o.init.apply(this, arguments)
} else {
d.error("The method " + e + " does not exist in $.uploadify")
}
}
}
I uploaded the SAMPLES folder and ran the index.php. It worked fine until I clicked UPLOAD FILES. It starts to upload files and I get messages stating "the files exists..." I know the files were not there to start with. It seems that the page is trying upload multiple copies of each selected file. If I click on OK in the warning the file is overwritten. If I click CANCEL the page quits. When I check the server there will be only 1xCopy of the file. Can anyone help me find out how to fix this? (I can provide web page if necessary)
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.