Mobile app version of vmapp.org
Login or Join
Berumen354

: How RAM is used on CGI query? The user sends a file via HTML form <input type="file" ... /> CGI script, installed on the server, receives the file and, say, writes it down to the disk.

@Berumen354

Posted in: #Apache2

The user sends a file via HTML form <input type="file" ... />
CGI script, installed on the server, receives the file and, say, writes it down to the disk. As simple as only possible.
As I understand, files, sent to the server via POST, are stored in the RAM on the Server, before they are written on the disk. (If I am not right - please, correct me).
The question is IF the file, that a user sends, weights 2GB and the server (just for example) has only 1GB of RAM on board? What will happen then?
Thanks!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berumen354

1 Comments

Sorted by latest first Latest Oldest Best

 

@Berumen354

I found an answer: the data is paged onto disk. So, there is no problems with CGI at sending vast data to server.
Thanks.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme