Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Form JS Live Validation not working if there is SWFUPLOAD field


Reply

14 Posts   2952 Views

Avatar
apiening

8 September 2010 at 11:25am Community Member, 60 Posts

fair enough, if you want something unit tested i can just write a test or two for you rather than adding to your confusion by givin you my own crappy explanation on ut.

regarding uploadify, which i had read about before: i tried it out and it's just great ! would be nice to decouple it from DOM (falling back to TreeDropdown if SimpleTreeDropdown doesn't exist) so one could use it on it's own.

cheers

Avatar
UncleCheese

9 September 2010 at 1:45am 4085 Posts

Good catch. Decoupling this module from DOM was a priority, but that's one thing that I missed!

Avatar
UncleCheese

9 September 2010 at 1:46am 4085 Posts

Would you be willing to write some unit tests for Uploadify? I'm great at learning by example.

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
apiening

10 September 2010 at 9:34am Community Member, 60 Posts

sounds like a plan. anything you want to start with? maybe something that is a little shaky or that was tricky during the implementation? drop me a pm if you like

Avatar
UncleCheese

11 September 2010 at 2:08am 4085 Posts

Here are some things that fail frequently in Uploadify:

- Malformed path to the upload script, returns a 404
- Flash is unable to pass the session to the controller through $_REQUEST['PHPSESSID'] (probably a hard one to test)
- File doesn't respect the given upload folder, whether chosen by the user, or stated in the code with setUploadFolder();
- File doesn't save into containing DataObject properly. (When reloaded for editing, the files are no longer there)

Whaddya think?

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
apiening

13 September 2010 at 9:06am Community Member, 60 Posts

sweet, that's a good starting point. i'll have a look