Making script for automatic file upload.