I have one web page in asp.net. In that I have put file upload button. When I click on that button, it opens the browser. I want that it should allow me to select Multiple files. When I select multiple files, I should be able to save them to some location.
Please guide me on this.
This is example of multiple file upload
http://www.aspdotnet-suresh.com/2012/12/aspnet-upload-multiple-files-using.html
Related
I wast to use an image as a Fileupload control asp.net application such that when I click on the image, it opens file explorer. Once an image is selected, the the selected image is displayed. I should also be able to store the selected image into a database. Any code to do that?
Please be specific to the point what you have done so far. But I give you link for the solution.
File Upload control to upload file and save record in database
I am working with Adobe AcrobatDC and I need to OCR several images (PNG, EMF, JPEG) that are in a folder. I figured out how to create a batch process using the "Action Wizard" and it traverses the folder and creates text recognized PDF files. The only features I have not been able to figure out are how to automatically save the images into a specified folder. Currently my customized action will prompt me during he automation and ask if I "would like to save the file" and then prompt me again to "select a destination folder".
Question: Using Adobe AcrobatDC action wizard how do I create a batch process in order to automatically save to a specified folder and
eliminate all prompts ?
Add a "Save" step. In the options there, click the icon to the right of "Save". You can specify a local folder.
I am using Fileupload control to upload file. I am displaying the selected file icon(with achor tag) with file name. if click the icon i want to open the selected file in a new window.
How to take the selected file path from the fileupload control.
Nathiya,
Do you want to open the file BEFORE it is uploaded to the server?
If the file was already uploaded to the server, then you know the file's path since you passed it to the FileUpload1.SaveAs() method.
If you want it before (e.g. someone clicked on the browse button and choose a file but did not upload it to the server) - Then this is not possible as the file is still on the user's local computer (you can't show files that are on the user's computer, only files that are on your server).
What i came to know from the search is it is not possible
As it leads to privacy breach and security breach
Please check this Get Full File path
FileUpload1.FileName will give you the name of a file on a client.
EDIT : As per the comment. You should first upload the file to your server. Then use the path (the url to the file) to set as the href value of an achor tag.
What I want is that the user on my website, can upload a .txt file(s) on my web space. I don't want the user to select the file, but the file is already selected. I want to achieve a 'back-up' function.
Thanks in advance.
I am creating an excel report in vb.net using the office interop. When the report is completed I am saving the excel file on the C drive. The users have asked to save file anywhere they want not just the c drive. Can someone give me some code to popup an opend file dialog in asp.net?
I want the dialog to popup in a saveAs in ASP.NET. I know how to do it in win forms, but I am creating an excel report in asp.net and calling the worksheet objects SaveAs property that excepts a fileName. So right now I just hardcode a file name in there. The users want to choose a file location
I think what you want is actually rather simple.
You can't save a file to the user's computer due to security restrictions (would you want a website saving a file to your computer?)
What you need to do is:
Complete report
Save report file to location on server, IE (.../myWebsite/files/GUID/myReport.rpt)
Display link on next screen pointing to the report file
Doing this the user can right-click and save the file to wherever they want on their computer.
You can clean up these files on whatever schedule you would like.
Assuming you are actually talking about a desktop, winforms app then you can use the built in FileSaveDialog.
Official documentation is here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.savefiledialog.aspx
but there are tons of tutorials explaining it out there:
http://www.google.co.uk/search?q=vb.net+savefiledialog
You can server files with the Open / Save dialog by using Response.TransmitFile().
The user is then presented with a save as dialog where they can choose the filename and the location on their computer.
You normally do this inside a HttpHandler. A simple one is described here:
http://blogs.msdn.com/petel/archive/2005/12/01/499189.aspx