Rank: Newbie Groups: Member
Joined: 9/6/2011 Posts: 1
|
I am using the standard file upload control as a field template in a gridview. I am able to browse for a file from a row in the gridview and upload it but that is backwards. I can only do one file at a time and there has to be a row in the grid already. The way the client wanted it to work was to browse for a folder, and have it select all files in the folder or be able to manually select certain files in a folder and click add and have it add that number of rows to the grid with their filename column populated with the names. You would then be able to edit things about the row in the grid. Once you have edited all the information about X number of rows, click upload and have it upload all items in the grid. I thought I could use the AJAX uploader but was having issues binding it to my grid. Is there some other control or can someone suggest a way to make this happen? Below is a link to the form. Basically alll the information above the grid pertains to however many documents you add to the grid, then at the end I want to upload the files along with the creation of XML files web server etc. Any help would be greatly appreciated. http://s892.photobucket.com/albums/ac127/orp_album/?action=view¤t=SCN.jpgThanks is advance, Craig
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There are essentially three types of uploaders: The built-in FileUpload, HTML based AJAX Uploader and plug-in (usually Adobe Flash) based uploader.
Our uploader is HTML based, which means you do not need any plug-in to run. HTML file browse dialog does not allow you to select multiple files. So you cannot use our uploader to select multiple files. You can upload multiple files in a single upload, but user will have to click "Browse" multiple times and select one file each time. Further more, while our uploader allows you to have multiple "rows", you cannot span different row into different parent controls (in this case your Grid row). So it does not appear that our uploader can do what you wanted to do.
Most plug-in based uploaders would allow you to select multiple files. However they either require a popular plug-in such as Adobe Flash, or their own plug-in/Active X control to run. If the user's computer does not have the required plug-in installed or enabled, then it won't work. So you will need to have some "fall back" strategy in place.
Hope this helps. Please feel free to let us know if you have any more questions.
Thanks!
|