Uploading a file
-
Hi everyone! I have a webpage that allows a user to upload a file for storage in a database. However, I am having a problem when users try to upload a bigger file (usually 3MB+). I am assuming that this is because I am trying to send the entire file to the server at once :confused: How can I get around this? Any help is greatly appreciated ;P
-
Hi everyone! I have a webpage that allows a user to upload a file for storage in a database. However, I am having a problem when users try to upload a bigger file (usually 3MB+). I am assuming that this is because I am trying to send the entire file to the server at once :confused: How can I get around this? Any help is greatly appreciated ;P
could it be that since the file is so large/connection is so slow, the operation times out? as to get around it, you could have the file rar'ed (like a zip) which will zip it up into pieces and then send the pieces bit by bit. Also, try compressing the file so that it gets smaller. If not, use FTP connection instead of form based.
-
could it be that since the file is so large/connection is so slow, the operation times out? as to get around it, you could have the file rar'ed (like a zip) which will zip it up into pieces and then send the pieces bit by bit. Also, try compressing the file so that it gets smaller. If not, use FTP connection instead of form based.
jeweladdict wrote:
could it be that since the file is so large/connection is so slow, the operation times out?
I am assuming so. Adding a rar or zip to the file might help but it is not something that i really want to do. Is there a way that you know of that I can send the file to the server in pieces? Thanks ;P
-
jeweladdict wrote:
could it be that since the file is so large/connection is so slow, the operation times out?
I am assuming so. Adding a rar or zip to the file might help but it is not something that i really want to do. Is there a way that you know of that I can send the file to the server in pieces? Thanks ;P
ftping would be the best bet.
-
ftping would be the best bet.
-
Ok thanks i'll give that a try ;) I also have a another question... Is it better to save the file to a database on the server or right on the disk?
-
Hi everyone! I have a webpage that allows a user to upload a file for storage in a database. However, I am having a problem when users try to upload a bigger file (usually 3MB+). I am assuming that this is because I am trying to send the entire file to the server at once :confused: How can I get around this? Any help is greatly appreciated ;P
-
There's a limit on the size of a request, I believe it's 4 MiB by default. Could it be that? Then you can change the limit in web.config. --- b { font-weight: normal; }