[ 1 post ]

Brad Kusnir

  • Username: we350z
  • Joined: Tue Mar 06, 2012 5:51 pm
  • Posts: 10
  • GitHub: we350z
  • Gists: we350z
  • IRC: we350z
  • Offline
  • Profile

Help with Uploader File List

Post Posted: Fri Mar 09, 2012 3:30 pm
+0-
I am having difficulty working with the built-in Uploader control file list. I am using the 3.5.0pr2 manual test example (uploder.html / uploder.js). I need the ability to do the following:

- perform simple validations (i.e. file extension, file size, total number of files not exceeded) BEFORE a file is added to the queue via the OS file selection dialogue box.
- remove a single file from file list

Any suggestions? I don't see a way to do this with the built in file list and I am not quite sure how to implement it on my own. I assume that I could build some sort of logic to manipulate an array of Y.File instances and then use UploadThese() to send them on their way?

http://stage.yuilibrary.com/yui/docs/ap ... ploadThese
http://stage.yuilibrary.com/yui/docs/ap ... ploadThese

Not quite sure how to work with individual Y.File instances (any examples welcome). I did take a look at what the objects look like in the Chrome Javascript Debugger so that gives me some insight into it.

I also opened a couple enhancment request tickets related to this:

http://yuilibrary.com/projects/yui3/ticket/2531876
http://yuilibrary.com/projects/yui3/ticket/2531877
  [ 1 post ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum