zzzj_2812
New Member
- Messages
- 10
- Reaction score
- 0
- Points
- 0
Hello all!
I would like some help with a performance issue: the upload of very large files.
Here's the issue: users are able to upload avatars on a site that I am currently building. Currently, the server will check if the avatar is larger than an allowed file size, and if it is too large, the avatar will not be saved. However, this is not satisfactory for me. The server has to spend a lot of time receiving the file, only to tell the user that its not allowed. Is there any way to either:
1) Check the file size on the client side, and keep the user from uploading it, or
2) Change some configuration setting so that the server will not even start to upload files that are too large?
I know you can change some settings in php.ini to accomplish the second, but we don't have access to php.ini. Does anyone have any suggestions?
I would like some help with a performance issue: the upload of very large files.
Here's the issue: users are able to upload avatars on a site that I am currently building. Currently, the server will check if the avatar is larger than an allowed file size, and if it is too large, the avatar will not be saved. However, this is not satisfactory for me. The server has to spend a lot of time receiving the file, only to tell the user that its not allowed. Is there any way to either:
1) Check the file size on the client side, and keep the user from uploading it, or
2) Change some configuration setting so that the server will not even start to upload files that are too large?
I know you can change some settings in php.ini to accomplish the second, but we don't have access to php.ini. Does anyone have any suggestions?