PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, August 1, 2022

[FIXED] How should I handle downloading extra files for my app?

 August 01, 2022     c#, ftp     No comments   

Issue

I have a .net desktop app and there are add-on files to the app and I would like the user to be able to download them when needed from the app, So how should I handle this, I was thinking maybe I could set up an ftp server and grab the files from there but I want to know the best practice for this or the most efficient solution


Solution

Best solution is typically the easiest solution. I would set up a website and host the files, and then have the application download them as needed.

using (var wc = new WebClient())
{
    wc.DownloadFile("https://your-domain.com/application/foo.bar", "foo.bar");
}


Answered By - Nick Daria
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing