Can I upload a video straight from the user PC to azure? - asp.net

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

Related

How to Upload file from Client to Sever Without access to Client Directories? ASP.net

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.

How to upload existing ms sql databse in web server?

I have one web site and I want to upload it on server and i also want to upload the ms sql database with that web pages. Please tell me how to upload it on web server....
This is a rather generic question because there could be a lot of different problems and differences, but generally, you would take a backup of your server first. Here is some general information on that:
http://msdn.microsoft.com/en-us/library/ms187510.aspx
Then log into your hosting provider, create a database using their tools, and restore your database backup to that new hosted database.
Next you would change where your database config in your files is pointing to the new database, then use an ftp client like Filezilla to ftp into your web server. The hosting provider should be able to give you the username and password. Upload the web pages / files to the public directory (usually /public or /htdocs or something along those lines).

How to improve my pushover process

Currently, in order to push my website live I upload files to the server via FTP using FileZilla. If a user reloads the site when I'm pushing over the website DLL, they'll get a File is being used by another process type of error.
Are there any better pushover techniques I can make use of to get around this issue or any techniques that are generally better than using at FTP client to upload my site?
You can always upload an app_offline.htm file while you are deploying the new site. If you do this in an asp.net application the user will be directed to the app_offline.html file no matter what page they try to load/reload. When you're ready for them to access the site again you simply remove/delete/rename the file (i usually just rename it so it's a simple rename to get the site back into offline mode).
http://weblogs.asp.net/dotnetstories/archive/2011/09/24/take-an-asp-net-application-offline.aspx

ASP simple image uploader

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.

How can I save a Word document back to the main server from an ASP.NET intranet?

I have a ASP.NET intranet application that has a document library section. The user can click on a link to a MS-Word document that resides on the server and can then edit the document if required within the browser (IE).
The problem is that when they come to save their changes it needs to write it back to the server but instead wants to save it on their local system.
Any ideas how I can get it to save back to the main server ?
Thanks in advance.
you need to upload the file back to the server.
Is this a internet or intranet application? if intranet you could save directly to \\myServer\myFolder\...
If it's a internet application, so the end user does not access to the server files directly you need to create a Office Add In (using Visual Studio Tools for Office), called "Save to Server" and that will run "http://www.mydomain.com/updatefile.aspx" and that page will do a Update.
remember, Update with a filename diferent from the original, and if the update was ok, then delete the old, and rename the new (or give the user a version system and rename the file on the server to [myFile]_[currentDate].docx for example.
links:
How to upload a file to a Web server in ASP.NET by using Visual C# .NET
The link to the word document can be a file:// url.
Using this method the user can open the file directly on the share.
Assuming your intranet applicaiton supports writing back to the server, you would need to give the account that the web application runs as permission to write to the folder the documents are stored in, unless it is using impersonation then the users it is impersonating would need ther permissions.

Resources