Fixed bug with uploading through url