Is there a method inside ASP.Net to let me upload images or files in a very minimum script files?
Basically im looking for a script that will let me upload files or script by bulk on my server but there are few constrains on my server, like I don't have access on database I also don't have an access to an FTP account and my web hosting provider just provided me a web interface to upload files one-by-one.
I am hoping I can override their system by uploading few ASP files on their server and running those to have my own uploader then I can use it to upload my own files in bulk.
I found this site that contains some content on uploading files under ASP. Section 2.3 has the specifics for uploading with ASP.Net.
Related
I have hosted one web application on Azure Web application and application have one folder that contains dynamic images means application generated some images and stores on that folder but without write permission I can not save images dynamically please help me
Create a folder in d:/home/site/wwwroot and write there.
Is it possible to rename/move or delete files from a web application (ASP.Net MVC) that are on a server folder just like how you would do it locally? I would want the user to be able to upload say 30 files (from a scanner auto-feed) into a temporary folder on the server (cannot save it locally due to data security) and then allow the user to be able to rename /move before uploading them onto Azure blob storage.
I saw few examples - jquery file tree seemed good but not sure if it allows rename and moving. Please suggest solutions for working with the server folder. I intend to delete the server folder after I am done transferring files to Azure. TIA.
Yes, you can do this by giving the USER that is running the ASP.Net application (defaults to IUSR) permissions to write to that folder.
Be very careful though, as you're potentially opening your website for abuse when doing this.
See: https://www.iis.net/learn/get-started/planning-for-security/understanding-built-in-user-and-group-accounts-in-iis for how IIS users operate.
I made an ASP.NET web site using visual studio 2012. I registered a free domain and now I need to upload the project using for example FileZilla. Can you tell me which files exctly should I upload and do I need to set a starting page in my project or I need a Default.aspx page in it. I also have an MSSQL database. Any suggestions how to upload it?
If you can publish your code using this - right click on project , select publish, choose filesystem , and then save published code to target file system and then copy that directory to required domain using FileZilla. Also you can directly copy solution project , but it is recommended to host published code.
You can set startup page using web.config - Set Default Page in Asp.net
Regarding DB thing - you need to make sure, required domain has MSSQL, if that has, then copy required DB and attach to DB server, extract connection string ( DB server address, DB name , credential) and update that in web.config of hosted website.
I have an asp.net form where I ask the user for the location of a video file on his PC. He then clicks the submit button, and at that point I want to upload his video to my Azure storage directly, without first uploading it to my server. (My server is a shared server, and would not allow file uploads in any case).
Is there a way to do this?
Yes, you can do this with the new support for CORS combined with SAS (for security). Guarav wrote a detailed post on his blog: Uploading Large Files in Windows Azure Blob Storage Using Shared
Access Signature, HTML, and JavaScript
Every where I read of being able to "Upload files from the client PC to the Server" but HOW will you do this if you don't have access to the clients directories?
How will the client select what files to upload if the server does not have access to them?
Links on How to do this.
C#, Asp.net Uploading files to file server…?
Uploading files to a web server with ASP.Net
Uploading In ASP.NET
My Previous question telling me that the server does not have access to the client pc/directories
--UPDATE--
So thanks to the comments and answers I Understand now.
The server CANNOT access directories and files on the client. BUT
The client can push through files to the client that can then use the
files.
You need an upload control, so that the user can upload files manually. If you want to pull files from the user's PC without interaction with the user, then ASP.net won't do that for you. You should look into WCF or other frameworks.