Fixed the upload form behaviour