Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. File uploading stuck

File uploading stuck

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-netsysadmin
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hristiyan
    wrote on last edited by
    #1

    Good day, I'm doing an ASP.NET web project. One of the site's functionallities is that the user can upload / download files ( the uploaded files are not supposed to be with size ovr 1 MB). Since there are about 10 000 visitors per day and A LOT of people download and upload files a big problem occured. As you know the hhtp web traffic and web space are quite expensive and 1000 people uploading and downloading 1mb files a day costs a lot. So i decied to buy an FTP space where i'm going to upload and download the files. Here i'm stuck! What is the best way to upload / download files on anftp server? I'm thinking of two ways: 1) The client anthenticates on the web server and uploads the files. The server uploads the files on the FTP 2) The clients directly authenticates on the ftp server and uploads files withougt the web server. However the 1) has a disadvantage that the server makes "double traffic" ( one for receiving the file and one of uploading the file on an ftp server) The 2) is that the password must be stored on the client and there is a serious security risk Please Help Best wishes, Hristiyan

    Y H 2 Replies Last reply
    0
    • H Hristiyan

      Good day, I'm doing an ASP.NET web project. One of the site's functionallities is that the user can upload / download files ( the uploaded files are not supposed to be with size ovr 1 MB). Since there are about 10 000 visitors per day and A LOT of people download and upload files a big problem occured. As you know the hhtp web traffic and web space are quite expensive and 1000 people uploading and downloading 1mb files a day costs a lot. So i decied to buy an FTP space where i'm going to upload and download the files. Here i'm stuck! What is the best way to upload / download files on anftp server? I'm thinking of two ways: 1) The client anthenticates on the web server and uploads the files. The server uploads the files on the FTP 2) The clients directly authenticates on the ftp server and uploads files withougt the web server. However the 1) has a disadvantage that the server makes "double traffic" ( one for receiving the file and one of uploading the file on an ftp server) The 2) is that the password must be stored on the client and there is a serious security risk Please Help Best wishes, Hristiyan

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      Hristiyan wrote:

      the uploaded files are not supposed to be with size ovr 1 MB

      To begin with 1MB is not that much of data by today's account

      Hristiyan wrote:

      Since there are about 10 000 visitors per day and A LOT of people download and upload files a big problem occured.

      Do you expect all the people to upload 1MB of data? If so 10,000 x 1MB = 10,000MB = 10GB. Do you expect this to be daily uploads and downloads? If so, we have very high traffic.

      Hristiyan wrote:

      So i decied to buy an FTP space where i'm going to upload and download the files.

      How do you think FTP will solve you the storage space? What is the realistic upload do you expect? How about download? We have an application that can upload upto 700MB and servers thousands concurent users downloading files. I don't see where is your problem. Now, as for ftp: if you have to do it with option 1, then why don't cut off the ftp and handle it in your own. If you can upload that much data, then you are all set Look here[^] and here[^]

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      1 Reply Last reply
      0
      • H Hristiyan

        Good day, I'm doing an ASP.NET web project. One of the site's functionallities is that the user can upload / download files ( the uploaded files are not supposed to be with size ovr 1 MB). Since there are about 10 000 visitors per day and A LOT of people download and upload files a big problem occured. As you know the hhtp web traffic and web space are quite expensive and 1000 people uploading and downloading 1mb files a day costs a lot. So i decied to buy an FTP space where i'm going to upload and download the files. Here i'm stuck! What is the best way to upload / download files on anftp server? I'm thinking of two ways: 1) The client anthenticates on the web server and uploads the files. The server uploads the files on the FTP 2) The clients directly authenticates on the ftp server and uploads files withougt the web server. However the 1) has a disadvantage that the server makes "double traffic" ( one for receiving the file and one of uploading the file on an ftp server) The 2) is that the password must be stored on the client and there is a serious security risk Please Help Best wishes, Hristiyan

        H Offline
        H Offline
        Hristiyan
        wrote on last edited by
        #3

        Maybe i didn't make myself clear. The project that i'm making requires that every day aroung 1000 to 5000 people are gonna upload / download files which are around 1 mb. I'm on a web hosting plan which requires $5 for each 5GB additional traffic. Which means 30x5$ = 150$ per month for additional web traffic and 5$ for each 5$ for each 500MB web space. You can immagine the sum. Since i ALMOST don't benefit from my web site, thats quite an expense. So some time ago i saw some FTP hostings which are A LOT more affortable ( The FTP traffic is much cheaper, the ftp space is much cheaper). So my main idea is to store those files on an that kind of FTP server. However i need logic so i can upload files on that FTP server. In my oppinion there are two ways to achieve this: 1) The client authenticates to the web server -> Uploads the file on the web server -> The web server uploads the file on the FTP server. However this method has a disadvantage - the web server will have to make twice as much traffic. Once for the client to upload data on the web server and once for the web server to upload data on the ftp server. 2) When the client is uploading the file directly upload it on the FTP server withought the intervention of the web server. However this means that "somewhere on the client side" is supposed to be stored the password of the FTP server ( so the client can upload the file ) However i think that there might be a another way. Like: The client authenticates to the web server. "Somehow the web server tells the ftp server that the client is gonna upload a file and the ftp server accepts the connection" ( Thats some really newbiesh way to explain it though ) Any suggestions ? Best wishes, Hristiyan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups