Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
1.12/5 (3 votes)
I'm posting this question here because I saw a lot of posts here regarding the uploadify control.

I'm using uploadify control in my ASP.NET web application (.NET framework 4.0, visual studio 2010, Uploadify v2.1.0).

I'm using a generic handler (UploadifyHandler.ashx).

Control is working fine. I just need to customize it according to my need. It could be great if someone could help me with this.

In my page, there is a file upload control to select an XML file from the client PC. I need to read the XML and find out the image file names in it (can i do this client-side?). I'm really confused here. I just need to upload only those files which I read from the XML file. The image files are in a folder in the client PC. It is a large folder which may contain more than 15,000 image files. Actually my requirement is to fetch the required files (file names from the XML) from the user selected folder. Since there is no control to select the folder, I'm using uploadify control to select the files instead. The user may select all the files in the folder. But I just need to upload only the files which I read from the XML. Or is there any other workaround?

Hope it explains all. Looking for a solution ASAP.

Thanks.
Posted
Updated 19-Jul-13 6:05am
v2
Comments
[no name] 19-Jul-13 11:45am    
http://www.uploadify.com/documentation/
ZurdoDev 19-Jul-13 12:05pm    
I don't understand.
bian12 19-Jul-13 12:33pm    
ryanb31, I have an XML which contains several item records. Each item record has an image file-name. So I need to find the image file-names from the XML first and these are files I need to upload to the server. Either I need to read the XML from the client-side for file-names to upload the images right-away. Or if it is not possible, I need to upload the XML first to the server, process it there and then upload the images accordingly. The images folder would be a huge folder which may contain more than 15,000 files. So I just need to pick only the files which are present in the XML file to upload.

Hope you understood this time.
ZurdoDev 19-Jul-13 12:39pm    
I don't know how you can do any of that. Uploading files is a client side user initiated event for security reasons. Your code can't just browse the users machine. I'm not sure how you can do that without the user actually picking the files.
bian12 19-Jul-13 13:01pm    
There is no security issue here. Only those who have admin rights will do this upload and that too once in a while. But I need to implement this feature. I have a working desktop version of this. Now I need to have it online so that it can be done from any location.
Since there is no control to select a folder, I can ask the users to select all the files in the folder. I don't mind loop through the selected files and filter it out. So that only the filtered files will be uploaded. My only intention is to send the files to the server anyway.

It is not possible for someone to look at the XML, find the file-names and pick those files from the large folder manually. I just need to automatize this.

Sorry for asking for a weird solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900