Uploading functionality - frontend