file uploading for diffusions