Removes unnecessary stuff. Adds redirection after successful upload.