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.
Related
I am building an app using ASP.NET C# MVC5. You can add records to a database and these records can have images attached to them (it can be a single image for now if it makes it more complex).
I have seen some other posts on storage uploads but I don't see them working for me:
Upload File to Amazon S3
Upload files directly to Amazon S3 from ASP.NET application
How to upload a file to amazon S3 without passing it by a server?
Idea:
Upload a file (image) to Amazon S3 without the data passing through my server.
Persist any data on the form that was entered by the user (I'm happy with a post-back, modal or no-refreshing of the page)
Save a database value in a File table with the name and type of the file etc. that was uploaded (this will also be linked to the item that they are associated with)
Process:
User selects file to upload and presses upload button
File is uploaded directly to amazon (c# async method?, ajax?)
Thumbnail version is also created and uploaded to amazon using the same method? ('-thumb' is appended to filename)
Database records created with filename, amazon fileKey, fileType etc. for both files
(optional) thumbnail is then shown on-screen next to the uploader
User presses 'Save' to save the record along with the image information
When the user goes to save the item information (could be creating a new record or editing an existing one), the file information can be attached (if it isn't attached at the point of uploading the file??)
Constraints:
Avoid using client-based solution for improved app performance and accessibility across platforms (so avoid JavaScript, and definitely flash)
Minimise possibility of the user uploading a file and forgetting to save (or the browser crashing and loosing the link to the file that has been uploaded)
If I knew more about ASP.NET MVC I would have liked to have more suggestions or ideas. I wonder about using async methods or ajax calls to stop the page re-loading and loosing inputted data.
I have downloaded the Amazon SDK and built some classes around it but realised that it wasn't that useful if I'm not uploading via my app!
I took samples for client side upload from https://github.com/floatingfrisbee/amazonfileupload which was fairly useful (I managed to get it working in my app for client side uploads) but there is a lot missing from that solution to fit my problem and I would like a neat, reliable solution for my more complex problem.
Any ideas very welcome!! I'm really struggling to come up with something.
UPDATE 15.12.2016
To clarify, I would like to minimise the amount of client-side processing to the point that a low powered mobile device wouldn't struggle to process the request (obviously if the device can't handle simple image uploads then I don't need to worry).
In terms of server-side processing, the main thing I want to avoid is uploading the image via the server for bandwidth reasons, any other processing I am very happy to happen on the server.
I have developed ASP.NET application, and I used for uploading materials to my local pc following code:
filename = Path.GetFileName(FileUpload1.FileName);
FileUpload1.SaveAs(Server.MapPath("~/uploadfile/") + filename);
Label1.Text = "Upload status: File uploaded!";
Now, I want this to upload on Azure and what I need is to change this code to suit uploading to my azure website. I have made storage there, but I don't know how should I code it. I have tried searching on google, but documentation is at least to say, horrible and very confusing. Any help is appreciated.
Thanks in advance.
It isn't entirely clear to me what you are trying to do. Normally in ASP.Net applications you aren't actually trying to upload images from the local computer on which but actually want to have the user be able to use their browser to select an image from their computer. If that is what you are trying to do there are lots of samples out there. Here is a good one from the Mobile Services site, or here is another example - although it appears to use an older version of the storage client library so make sure you upgrade to the >= 4.0 version of the library if you take this app further than prototype. For a good overview of Blob storage look here.
If you are indeed simply trying to upload materials to / from your local PC to Blob Storage then take a look at AzCopy instead - it might be simpler.
I have a website wich allows users to upload / downloads files (pdf, jpg, txt, etc.). It works nice as it is, but my problem is that users accesing the web on an iPhone (or iPad) can't dowload or access the file. I've tried to use "Respone.Redirect" to the file, but it doesn't work. I've use c# to make my website.
Do you have a piece of code i can use to make it work?
This is the code i'm using but doesn't work:
if (Request.UserAgent.ToLower().Contains("iphone") || Request.UserAgent.ToLower().Contains("ipad"))
{
Response.Redirect(Server.MapPath(fi.FullName.ToUpper()));
}
Thank you.
I don't think the problem is with your code so much as with the phone.
How to download PDF and store it locally on iPhone?
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.
I would like to upload file from the client to the server with a Front End in SilverLight.
My problem is that the file is NOT in the isolation storage (that would be easy!).
The application in few word require to upload images from the user computer similar to the file uploaded FaceBook, (the Java version).
Is there a way to grant permission from the user OR a trick that I might not know to be able to upload files?
Thank you
*I do not want to use the Open File Dialog.
If you don't want to use the open file dialog, then I would say that there are no way, if there were, it would be a bug - a security hole in the sandbox.