numist / this-might-be-offensive

the stuff that makes tmbo tick
https://thismight.be/offensive/
29 stars 12 forks source link

Check if an alternative filename was submitted and uses it for the filename #64

Closed squeevey closed 12 years ago

squeevey commented 12 years ago

This will check if the filename field in the $_POST exists and is not empty. If it is empty, use the image name from $_FILES instead.

NOTE: The form field "filename" has not been changed to a text field. It is still hidden. Once this is fully vetted and ready for public consumption, we can enable it.