Upload Directory of Images
-
Hi, I am developing a web app using C#, asp.net and vs 2003 but i am having trouble trying to upload a directory of images using a single FileUpload control to select the first file and then loop through files in directory but i have discovered this only saves the first file x many times. So i am just wondering if anyone knows any way to do this, any help or advice would be appreciated Thanks in advance Tim
-
Hi, I am developing a web app using C#, asp.net and vs 2003 but i am having trouble trying to upload a directory of images using a single FileUpload control to select the first file and then loop through files in directory but i have discovered this only saves the first file x many times. So i am just wondering if anyone knows any way to do this, any help or advice would be appreciated Thanks in advance Tim
Most, if not all, current web browsers only support uploading one file per
<input type="file">
element. You don't get to iterate through a directory or anything like that, since that would give malicious pages opportunity to access files the user did not actually intend for you to have.Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
-
Most, if not all, current web browsers only support uploading one file per
<input type="file">
element. You don't get to iterate through a directory or anything like that, since that would give malicious pages opportunity to access files the user did not actually intend for you to have.Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
-
Thank for your reply i see what you mean but do you know is there any other way to upload multiple(up to 30) images quickly without having to place 30 upload controls on the page. Regards Tim
-
Thank for your reply i see what you mean but do you know is there any other way to upload multiple(up to 30) images quickly without having to place 30 upload controls on the page. Regards Tim
Google for
multiple file input
. There are ways of re-using a single <input type="file"> element. No multi-select though; you would have to resort to something outside of HTML+script for that.Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'
-
Google for
multiple file input
. There are ways of re-using a single <input type="file"> element. No multi-select though; you would have to resort to something outside of HTML+script for that.Citizen 20.1.01
'The question is,' said Humpty Dumpty, 'which is to be master - that's all.'