The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
file upload validation - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: file upload validation (/showthread.php?tid=728) |
file upload validation - morphiex - Jun 1st, 2010 Hi im wondering how i can stop a user from uploading a file above the set size or extension. i cant find anything for it, i set the file type and size option in formtools but the user still can upload the file and gets redirected to a thank page but the uploaded file is half-deleted, the name and file is deleted but the submission is still recorded in the database and shows up in the form table. anyone that can help me with this ? RE: file upload validation - morphiex - Jun 2nd, 2010 anyone that can help me ? i really need this fixed by the next 24 hours. RE: file upload validation - Ben - Jun 2nd, 2010 Hi morphiex, Unfortunately there's very little control over that aspect of the form submission. The max file size and file types control whether or not the file makes it, but has no effect on the actual submission. If the file doesn't meet the criteria it just won't get uploaded - the submission will still get through fine. Sorry I couldn't be any help. - Ben |