This topic is locked

Restricting upload file size

8/9/2006 11:27:43 AM
PHPRunner General questions
M
mmponline author

Is there a way to restrict the file size that can be uploaded? I wan't to prevent users from uploading huge photos and files to my server?

Also: Is there a message to show the restriction before and after the user tries to upload the large file?
Lastly... Can a thumbnail (low resolution / small) be automatically be created and inserted into the thumbnail field... or am I expecting to much now....
Help appreciated.

Alexey admin 8/10/2006

Stephan,
you can not prevent large files from being uploaded, however you can deny saving them at your server after they are uploaded. To do this modify $cMaxUploadFileSize variable in generated include\..._variables.php file.
Here is the article about creating thumbnails with PHPRunner.

http://www.xlinesoft.com/phprunner/article..._thumbnails.htm