How to Upload Directory
-
Hi, I want to upload the directory on the server. The file upload control is uploading the file not directory. is there a way by which I can upload the directory ? Thanks
-
Hi, I want to upload the directory on the server. The file upload control is uploading the file not directory. is there a way by which I can upload the directory ? Thanks
That's why it's called file upload, it uploads 1 file. Uploadify will upload multiple files at the same time sort of. Here's some seeds to get started with, just food for thought for planning. I've never written one so I don't have any experience at it. Using HTML5 to do mass uploads http://stackoverflow.com/questions/3590058/does-html5-allow-drag-drop-upload-of-folders-or-a-folder-tree[^] http://dior.ics.muni.cz/~makub/massupload.html[^]
-
Hi, I want to upload the directory on the server. The file upload control is uploading the file not directory. is there a way by which I can upload the directory ? Thanks
-
I have a dumb question. Are you wanting to upload all the files in the directory or somehow upload just the directory?
There are only 10 types of people in the world, those who understand binary and those who don't.
I think dumb question should be asked in QA :laugh:
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
-
I think dumb question should be asked in QA :laugh:
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
True. That is the place for it. :) Heck, I could copy my question and paste into a new question in QA without any of the context here and it would still make more sense than most questions that come through there. :omg:
There are only 10 types of people in the world, those who understand binary and those who don't.
-
Hi, I want to upload the directory on the server. The file upload control is uploading the file not directory. is there a way by which I can upload the directory ? Thanks
-
Hi, I want to upload the directory on the server. The file upload control is uploading the file not directory. is there a way by which I can upload the directory ? Thanks
I think it's a limitation of the browsers capabilities. Keep in mind that HTML elements are an agreed upon standard in which the browser will interpret the element and attempt to render it in the browsers window to the best of it's ability. I did some reading, and Google's Chrome, the latest version supports selecting the whole folder. Keep in mind that you can program the window that opens to select a file to or for, File Extension Types as a filter Single or Multiple Selection so if the browser has the capability, you should be able to toggle that feature. Other programs like uploadify use a combination of JavaScript and a HTTP Request to upload files, and completely bypass the file upload element. An example would be CK-Editor, in which you have to purchase or write a HTTP Handler to upload the file and write it to the server drive. Examples: Upload files using an HttpHandler[^]
-
Hi, I want to upload the directory on the server. The file upload control is uploading the file not directory. is there a way by which I can upload the directory ? Thanks
If you don't mind postbacks: 1. You'll need to build a custom Javascript window that will enumerate a selected directory, most likely recursively so that you can get the sub-directories. This will replace the file upload window, so plan to code some events and hooks. 2. You'll need some metadata to send with the files to identify where they all belong. You can also do this with AJAX but there are other considerations. Here's a tutorial for your controller: http://www.prideparrot.com/blog/archive/2012/8/uploading_and_returning_files#uploading_multiple_files[^]