Fixes file uploading on pages (custom fields)

Was a bug in the dev that wasn't added to version 0.8. Decided to provide this as a separate pull request.