Fixing progress bar for file uploads and prevent postform submissions until uploads are finished (#15)