Upload file directly to azure? - c#

I am writing a webpage that allows users to upload their files to Window Azure Storage.
First I let the user upload their files to my web-server, then I use Window Azure Storage API to upload these files to Window Azure Storage.
How can I let the user upload their files directly to Window Azure Storage without using my web-server as a proxy?

Yes, you can for instance do this using Silverlight as described here: http://blog.smarx.com/posts/uploading-windows-azure-blobs-from-silverlight-part-1-shared-access-signatures

The code at Steve Marx site doesn't work for large upload. I have posted a modified version of the control with cancellations and retries with Silverlight and TPL, also posted at WAZ portal at: Silverlight and TPL based file upload control
The project also has another version of the same control with HTML5 and AJAX.

Related

File Drag&Drop from Browser to Browser

My asp.net web application is some kind of "document managment system" saving files in the file system of the server.
The stored files are shown in an asp:ListView control and are downloadable as HTTP- Download. But I also want to drag&drop them into another browser window to upload the draged file to an cloud storeage like dropbox or google drive oslt.
I did some research and I didn't find any solution for this problem. I don't know if this is even possible. Maybe someone has an idea how this could be done?
I am pretty sure you can't have a web application doing that for you because it involves having your web language interacting with your computer, to move a local file to another window or tab in the browser.
It would be similar to have Javascript accessing your local files without the user "help". That is not allowed.
Rather than doing that, why not connect to Google Drive or Dropbox API and make the upload yourself?
In the piece of code where you trigger the download, you could also trigger an upload to the desired service.
Here are the API Documentation for the mentioned services:
https://www.dropbox.com/developers/documentation/http/documentation#file_requests-create
https://developers.google.com/drive/api/v3/manage-uploads

Windows 10 UWP App: Easiest place to upload a large file to?

If a user has a problem with our UWP app that I can't reproduce, I want to give the user a button, so she can upload the sqlite database to somewhere where I can access it. The zipped database could be up to 160 MB.
My question is where is the easiest place to upload a large file to using UWP. Pushbullet, OneDrive, Dropbox? Or I could FTP it to somewhere (am about to try this out FtpClient). I've noticed that Chilkat can help with this, but it's not free.
My question is where is the easiest place to upload a large file to using UWP.
The better way is using OneDrive to upload sqlite database. It has enough memory capacity, And you could easily use OneDrive API in the uwp app. This is OneDrive Service you could refer.
And this is code sample.

In Microsoft Azure i have two webapps. Form one Webapp i want to upload image that must be save in the other webapps folder

The first web app is the website and the other one is control panel .So from control panel admin upload image that must be shown in the website.
the two webapp are in the under same resource.
Look into storing the image as a Blob in Blob Storage. A storage account can be access from multiple applications.
There are several reasons you don't want to (and cannot) store it under the web app. One of them being that ...
Temporary files are not shared among site instances. Also, you cannot rely on them staying there. For instance, if you restart a web app, you'll find that all of these folders get reset to their original state.
Source: Understanding the Azure App Service file system - Temporary files

How to add trigger to move file to azure blob from azure file share when a file uploaded to azure file share?

The requirement is to move the files from azure file share to azure blob when user is uploading a file to azure file share.
I have gone through the link below:-
https://feedback.azure.com/forums/287593-logic-apps/suggestions/20324680-add-trigger-for-azure-file-storage
What I found out till now is trigger mechanism is not supported on azure file share like we can do on azure blob.So How I can achieve the same functionality on azure file share.
Basically i want a trigger on azure file share so that when file is uploaded i should able to execute my custom logic written in c# to process the file and upload to blob.
As you mentioned the functionality is not yet offered as a connector, however, since you have written your custom logic in C#, you can use Azure Functions, which allows you to run custom code and will be used as if it was a logic app instance. you can get the idea from:
https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-azure-functions
I will also Upvote your feedback and will discuss the status with the internal teams as well.

Uploading files to IIS server

I just wanted to ask is it possible to upload files to IIS server? If it's possible please describe me how to do it, thanks. I've been using google since 1h and i found nothing.
If all you need is file upload to your web server, you could set up FTP on your server
http://www.iis.net/learn/install/installing-publishing-technologies/installing-and-configuring-ftp-7-on-iis-7
If you are looking for a file upload capability for your web application, you can use the FileUpload control. The file would be POSTed to your page once you submit your form. The MSDN page has a an example of how to use the control and save the file on the server side.
Create a web application that has file upload capability
Host the web application in IIS.
Files uploaded will be dropped in your applications folder.
Take a look at for an example of file upload with WebApi: http://blogs.msdn.com/b/henrikn/archive/2012/03/01/file-upload-and-asp-net-web-api.aspx

Categories