digitarald / digitarald-fancyupload

Swiff meets Ajax for powerful and elegant uploads (MooTools Plugin).
http://digitarald.de/project/fancyupload/
277 stars 105 forks source link

Too much logic hidden in actionscript #7

Closed ulope closed 14 years ago

ulope commented 15 years ago

In this release much of the actual functionality that used to live in FancyUpload2 has been moved into the actionscript source. This makes it unnecessarily difficult to adapt FancyUpload.

My specific use case: I have to remember uploaded files across page reloads. Now since there is no "manual" addFile method I can not "inject" the files into flash so they are only known on the JS side. This leads to problems if a user tries to delete such a file since flash doesn't know about them and consequently can't fire the "remove" event on the file.

I solved this problem with a custom FileClass but still it's harder then it could be.

digitarald commented 14 years ago

How could you remember files over time, you? Validation happens event-based on JS side, so it is easy to add this and extending the File class is expected way.

I am however open to suggestions, what could be moved?