I want to allow my students to upload small text files (perhaps just a
few bytes in size) just to show them how to upload using a PHP form.
For security reasons -- I don't want them uploading MP3 files for
example -- I changed the upload_max_file size setting in PHP.INI from
the default "2M" to "1024". However I am still able to upload files
larger than 1024 bytes. How do I specify that the filesize limit is in
bytes and not megabytes? Thanks in advance.
few bytes in size) just to show them how to upload using a PHP form.
For security reasons -- I don't want them uploading MP3 files for
example -- I changed the upload_max_file size setting in PHP.INI from
the default "2M" to "1024". However I am still able to upload files
larger than 1024 bytes. How do I specify that the filesize limit is in
bytes and not megabytes? Thanks in advance.
Comment