Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Page 1 of 2 12 LastLast
Results 1 to 15 of 19

This is a discussion on Huge uploads via www - does size matter? in the VPS & Dedicated forum
I have a potential client who requires his website to be able to accommodate a small number of registered users uploading, via a web interface ...

  1. #1
    JPC Addict
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    135

    Huge uploads via www - does size matter?

    I have a potential client who requires his website to be able to accommodate a small number of registered users uploading, via a web interface (not FTP), files that could be as large as 300 meg.

    Would my VPS account be able to handle this, and if so, would there be any repercussions? If VPS couldn't handle this - what alternative accounts (if any) could?

    Thanks in advance.

  2. #2
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    The problem with this is not with your VPS, but with doing this over HTTP. Your VPS will handle it as good as can be. However, HTTP wasn't made for this sort of thing. The main problem: it doesn't handle interruptions very well. So if something goes awry, the upload needs to be redone from the start.

    For downloading there are many "download managers" on the market to help out with this. I'm not sure if these are client-side only, or need something special server side too. If they are single-sided, and you want to "download" from client to server, perhaps something similar can be done on the server side to make uploads go more fluent?

    That's a VERY long shot though.. I don't think there's much that can be done without installing something on the client's pc. And when you do that, can't you just give him an FTP program instead?
    Last edited by Gwaihir; 02-15-2006 at 10:44 AM.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  3. #3
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by uprightdog
    Would my VPS account be able to handle this, and if so, would there be any repercussions?
    Yes, you can do this -- but the repercussions will most likely be corrupt files!

    There is NO error correction with HTTP transfers. Ever pull up a web page and see errors on it, such as a pic didn't load, malformed headers and tables, text scrolling off the page instead of wrapping, et cetera? Then, you do a 'refresh' and everything is fine...?

    That's the problem with HTTP! The chance of sending files that big via HTTP with NO errors is pretty slim. You'll probably end up sending them over n' over to get it right...

    Put another way... HTTP file transfer sucks! Use FTP!

    H(yper) T(EXT) T(ransfer) P(rotocol) -- Designed to send webpages and webpage components to browsers via the Internet! No error detection or correction -- either direction!

    F(ILE) T(ransfer) P(rotocol) -- For transferring files between computers via LAN, WAN, Intranet, Internet, et cetera -- you name it! Fully automatic error detection and correction -- both directions!
    Last edited by Vin DSL; 02-15-2006 at 04:34 PM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  4. #4
    JPC Addict
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    135
    Okay, I get the picture - the current plan isn't viable.

    Anyone any experience of, or opinions on, this software?
    http://upload.thinfile.com/

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by uprightdog
    Okay, I get the picture - the current plan isn't viable.

    Anyone any experience of, or opinions on, this software?
    http://upload.thinfile.com/
    Never heard of that one, specifically, but it looks like an excellent solution!

    Heh! Maybe I'll turn it into a PHP-Nuke module...

    With that software, HTTP and FTP transfers are both available. That way, if your client is too lazy or stupid to use FTP -- and they have problems -- it's on THEM, not YOU! You know?
    Last edited by Vin DSL; 02-15-2006 at 04:53 PM.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Think File looks like it could be a viable solution. I haven't seen it before, but I've used a similar system from SoftArtisans that works with ActiveX on Windows servers and it works very well. The specific application that I worked on was a photo gallery type script, where users could drag in a folder full of images and upload them all at once. I'm glad to see someone has replicated that functionality in a cross-platform solution.

    It may just be my computer, but the demo on their site runs extremely slow.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  7. #7
    Voltron wannabe tank's Avatar
    Join Date
    Apr 2004
    Location
    Houston
    Posts
    306
    there's a small amount of "misinformation" floating around this post you can upload via http as much data as you want (as long as you are aware of the pitsfalls listed above). A VPS allows you to change your php.ini settings and allow large file uploads. This is something you can not do via the shared plan. And you can also write php scripts to use FTP protocol to upload the files (much like the program you linked to).

    So to answer the question.. VPS will allow you to modify any server settings that you can't normally modify to allow these large file uploads. The scripting part of it really has nothing to do wit the server.

  8. #8
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Sorry, but the only misinformation I see is what you just added. All posts above already agree that in principle you can upload as much data as you want. That you would be unable to do this in the shared environment is not true. Both the max-size and max-execution-time settings needed for that can be overridden from outside the php.ini.

    I do agree that when you start looking beyond pure HTTP, you shouldn't discount FTP too fast. There's reasonable integration between the two on browser side (Internet Explorer has a built in FTP client for example). So chances are good that with a well written webinterface you can get your users to upload by FTP fluently. I.e. without any hassle and with the non-tech savvy probably never even realising it.

    Edit: Google gave me this: http://www.zend.com/codex.php?id=527&single=1 (Consider it a proof of concept. I haven't tested it nor thoroughly reviewed it.)
    Last edited by Gwaihir; 02-16-2006 at 10:49 AM.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  9. #9
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Quote Originally Posted by tank
    And you can also write php scripts to use FTP protocol to upload the files (much like the program you linked to).
    Not quite...it is true that PHP has a set of FTP functions, but they cannot interface with the browser. Remember: PHP is a server side technology. The PHP FTP functions allow you to write scripts that connect to FTP servers to upload or download files from a remote server to your server, but they cannot get files from your local machine (unless you are running your own FTP server on that machine and you instruct PHP to access it.

    To actually get the files to the server you'd still need to use HTTP uploads or a third party solution.

    --Jason
    Last edited by jason; 02-16-2006 at 01:14 PM.
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  10. #10
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Quote Originally Posted by Gwaihir
    Edit: Google gave me this: http://www.zend.com/codex.php?id=527&single=1 (Consider it a proof of concept. I haven't tested it nor thoroughly reviewed it.)
    That script is simply a web interface to an FTP server. It takes a file uploaded by HTTP and uploads that to an FTP server. In order for this to be effective you'd need to have a reliable HTTP upload initially, so it really doesn't do anything for the given situation.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  11. #11
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    IE does have a built in FTP client... Just thought I'd toss that in for no apparent reason.

  12. #12
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by jason
    To actually get the files to the server you'd still need to use HTTP uploads or a third party solution.
    Pity. You sure there's no built in trick (probably browser specific) that can get your webbrowser to upload a file by FTP? Seems to be so little point in having that built in FTP in MSIE if you can't even tell it to do that..
    Quote Originally Posted by jason
    That script is simply a web interface to an FTP server. It takes a file uploaded by HTTP and uploads that to an FTP server. In order for this to be effective you'd need to have a reliable HTTP upload initially, so it really doesn't do anything for the given situation.
    Ok; I guess I should have actually read it rather than skimmed it for the word "FTP". Hmm.. bah.. it is indeed just a way to allow people to use FTP through an HTTP "proxy". Uploading twice! Awfully redundant for an upload script.

    Weird.. hard to believe browsers still have no good built in way to deal with so common a task. So Jason, you're saying IE can have you download by FTP, but not upload (at least not without going through the motions of "real" FTP use first)?
    Last edited by Gwaihir; 02-16-2006 at 05:29 PM.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  13. #13
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Quote Originally Posted by Gwaihir
    So Jason, you're saying IE can have you download by FTP, but not upload (at least not without going through the motions of "real" FTP use first)?
    Correct...although there is an FTP client in IE, there is no way that I know of to do an FTP upload from a web page. That would be useful, though.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  14. #14
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by jason
    Correct...although there is an FTP client in IE, there is no way that I know of to do an FTP upload from a web page. That would be useful, though...
    This is a rather confusing declaration...

    If you log into a FTP server, using Internet Explorer, via a FTP session, you WILL be uploading/downloading files using FTP - period.

    However, I think you're saying you cannot do this via a conventional HTTP interface. In that case, you are correct!

    In other words, in order to upload files using the FTP client built into IE, you need to log into a FTP server, using a username and password, even if it's an anonymous login (if the FTP server allows anonymous logins). Otherwise, you cannot upload files via FTP using IE.

    If that's what you're saying, I agree...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  15. #15
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Lordy, if you give'm the link to the location you want it uploaded, with the ftp:// protocol prefix and the embedded username/password, it doesn't get much easier than that

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •