Comments (5)
jQuery puts its own event object in front of all arguments when it calls DOM listeners so you can add e
before every argument of FileDrop's own events. Normally you'd just ignore it, it's not useful.
Right now FileDrop has been rewritten and expanded with HTML5 support. Here's the demo if you feel like taking a look.
from filedrop.
This is fabulous!
Many thanks… You really should put a tip box somewhere on your site. I have sweated blood trying to roll my own file upload system...
3 thoughts/questions.
1: I still can’t turn off logging when using the jQuery interface. I tried this...
var options = {logging:false, iframe: {url: 'upload.php'}};
but it doesn’t seem to work….
2: file.SendTo (old jQuery example on https://github.com/ProgerXP/FileDrop) has been re-capitalised to file.sendTo (your new code). That is a very minor thing, but it stops the new code from “just working” with existing implementations. It is going to generate support requests / confusion. If you add a note to your new page explaining the change, people will know to update their code.
3: Using a class and doing something like this isn’t going to cause problems is it?
$('.dropbox').each(function(){
var upload_parameter = something unique to this instance...
var el =$(this);
el.filedrop({logging:log,iframe:{force:force_iframe,url:send_url}})
.on() …etc
.on() …etc
})
Many thanks!
Nick
from filedrop.
still can’t turn off logging when using the jQuery interface.
Logging is global, you have to set window.fd.logging = false
before/after FileDrop.js has loaded.
That is a very minor thing, but it stops the new code from “just working” with existing implementations.
There are multiple changes that prevent new FileDrop from working seamlessly with old scripts. I'm planning on writing separate compatibility layer for v1 but if you're writing a new project/could update your old code this is the way to go. Overall I made properties more standardized (zone
-> el
, camelCase capitalization, etc.).
And I will surely update my page and write the migration guide, don't forget FD2 isn't yet released.
Using a class and doing something like this isn’t going to cause problems is it?
Yes, should be fine.
p.s: I've renamed your ticket to better match the thread. Please don't mind.
from filedrop.
Understood. I know the docs are not yet complete - if I can help with testing, on either Mac Safari or iOS, let me know.
from filedrop.
if I can help with testing, on either Mac Safari or iOS, let me know.
This would be awesome. For starter you can just run the new demo I've linked to above and see if all samples work. If not tell me which are failing, I will check them out. So far I've only tested FD2 in Firefox and Chrome; the latter fails on some uploads.
When I'm near release I will drop you a line to do more thorough testing. Thanks!
from filedrop.
Related Issues (20)
- Using FileDrop as standard input element HOT 4
- File without parameter name in post request HOT 1
- Not Receiving $_FILE in PHP HOT 2
- [questions] Status of this project / plans HOT 2
- Upload but not saved HOT 7
- Documentation/progressbar, suggestion of adding comment or CCS for demo
- file.type seems doesn't work for several files HOT 8
- Traditional ASP Forms Application Usage HOT 1
- Can I get returned data from the `sendTo()` function? HOT 1
- Change Url Dynamically HOT 3
- Clear the drop area HOT 1
- File Drop js is not working in strict mode
- Please add a license
- Files of the same name are ignored when uploading directories HOT 2
- Click to upload only allowed once HOT 2
- move_uploaded_file HOT 3
- MIME type before upload? HOT 1
- request function, fd.serialize(form) HOT 1
- file name problem HOT 1
- Publish to NPM.js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filedrop.