Framework for uploading files to the server