I'm making a web app that allows users to compose an image in canvas and then saving that to the uploads folder of my wordpress install. Right now the process of the app is as follows.
- User inputs user data (hence "anonymous", each upload through my app is tagged with some user data, albeit self submitted)
- User composes image on canvas
- Inputs verified & sanitized via js
- If clean, contents sent via ajax post
- php files handle creation of draft post & uploading of image via the media_handle_upload command
EDIT: I've set the permissions for the upload to 775 (I think that's what apokryfos was suggesting, I'm really new to managing servers) So I only have one question now.
- Is it possible to further secure my uploads folder? I already have a .htaccess file restricting the execution of php.
I wouldn't mind restricting my folder to just .png files which is the only thing I'm uploading to it, but I'm worried any .htaccess solution won't matter because it can just get overwritten.