Fix attachment uploading not working

Hiding the upload form causes the upload to fail.
Merge branch 'upload-fix'