Re: [PHP] php File upload



On Fri, Aug 8, 2008 at 1:08 PM, mike <mike503@xxxxxxxxx> wrote:
On 8/8/08, Luke <tinmachin3@xxxxxxxxxxxxxx> wrote:
Is a 1.9 gb file upload even sustainable on even a fairly small scale web
application? Maybe you could implement FTP if you trust the people that want
to upload the file.

This is why I am pushing for people to use PUT.

Still over HTTP, uploaders can be coded to be 'smart' and resume,
re-transmit on failure, etc.

It does however require applet (java, flash, etc) or thick client
support on the client, and a server that understands the DAV request.
I have it working in nginx right now. Need to test large files and
watch PHP's memory consumption, since I am spoonfeeding the file to
PHP.


I've not had to upload such large files over HTTP, so forgive my
ignorance, but on the request end isn't the only difference between
PUT and POST the verb used in the request (and the intent of the
operation)? What can you do with PUT that cannot also be handled the
same in POST? I don't see any implementations doing it, but from what
I can tell the spec allows you to use Content-Range in the request
headers that your client sends to PUT/POST the same way the server
sends them in the response headers when serving a GET request.

Andrew
.



Relevant Pages

  • Solution design
    ... allow the end user to upload photos to the server. ... The first request would trigger for creating: ... and uses the advantages of the .NET technologies even on client side). ... we tried to create a Java applet that was trying to ...
    (microsoft.public.dotnet.general)
  • Re: How to send response headers from proxy to browser?
    ... browser and redirect it to www.yahoo.com. ... should we do to send the response headers from proxy? ... I suspect that the problem is that you are not correlating what the client sees ... When you send your request to Yahoo, ...
    (comp.lang.java.programmer)
  • Re: breaking the model
    ... > The forms data then is in the Request object. ... HTTP Request; in this case, the form POST Request from the Page. ... client and server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Resolving record with enumerated type
    ... In a CPU BFM package, ... because data goes in two directions (request from the ... from the server to the client), you'll need some way to orchestrate ...
    (comp.lang.vhdl)
  • Re: WSE 3.0 + UserNameToken without X.509 Cert/Kerberos + Signing + Encryption How?
    ... I still think that there is a lot of benefit for Secure Conversation ... message security and thefore it does not encrypt the message. ... between client and server using a UserNameToken that passes the UserName ... assuming the client request adds a proper UserNameToken... ...
    (microsoft.public.dotnet.framework.webservices.enhancements)