Trying to figure out the best way to upload the entire contents of a folder in an HTML5 / .NET MVC-4 project. It looks like only Google Chrome supports the HTML5 drag and drop file upload functionality. Is there another plugin that I can use to allow users to upload the entire contents of a folder?
Related
I have read that it is not possible to read folder content in an ASP.NET MVC application.
I want to compare different folder directories and highlight the differences.
How can I achieve this?
Here is a filesystem API documentation https://developer.mozilla.org/en-US/docs/Web/API/File_and_Directory_Entries_API
But it's supported only by Chrome and Opera http://caniuse.com/#search=filesystem
I know when uploading files for security reasons the browser will not get directory of file when using a file upload control. But what I am looking for is for the local network user to select a file in a network drive and capture the path and file name but not upload that file. this is just to store the file they select in a table. Is there a way of doing this? some sort of work around? the only thing I've thought of is putting a textbox and having the user copy/paste the file path but is there an easier method? again not uploading the file just capturing what file and location the local network user wants to use.
It can't be done using the File upload control (html input element). You have to use a plugin like (possibly) Flash or a custom ActiveX control.
What you are looking for is not possible using standard web technologies (html, css, js).
I want to download a file to a specific folder. I'm using WebClient.DownloadFile, but what I would like is to let the user select where this file would be saved, not just download it into any folder.
How can I do this?
The folder that the user would download the file to would depend on their browser, and system settings.
All you can do is provide the file to download, and it would be up to them (and their browser) to select a local folder (on their system).
If you want to control that process, you would have to use an embedded plugin like Java, Silverlight, Flash, etc.
If you are using Windows Forms, you can use the SaveFileDialog class to allow the users to pick a file name, and then pass that name to the second parameter of WebClient.DownloadFile.
You can download html source and web contents(.files folder) by right click and "Save As.." in Internet Explorer on PC.
I'd like to do the same way as IE in Windows Phone.
I know how to download html source using WebClient class. But I cannot still download web contents(.files folder).
Does anyone know how to download html source as well as web contents(.files folder) ?
You need to download all the content of a html source and locate contents like images and download them with webclients, you need to code the biggest part of this idea.
here it is a link of an application which allows user to download images from imageboards :
http://www.windowsphone.com/fr-BE/apps/1d2e7d7c-1bab-4656-9db3-35c868e40cfe
Would anyone offer tips, links, code snippets on how to browse to a file folder from within an ASP.NET 3.5 web application and list the folder contents within a ListView?
Regards,
Rey R. [neophyte web application developer]
I assume you mean at the client? In which case, using regular methods you are limited to the <input type="file"/> and whatever that does in your user's browser.
Beyond that, you need additional tools; for example, flash or Silverlight - which would allow access, but even that may be sand-boxed for security.
You certainly can't list the user's files from the server.
Upload Multiple Files in ASP.NET using jQuery
http://www.dotnetcurry.com/ShowArticle.aspx?ID=317