I've done a minor patch today, aimed at fixing an issue with file uploads.

If you notice any issues, please PM me.