Add refresh flag to file upload.
Merge pull request #492 from MastodonC/feature/upload-refresh

Add refresh flag to file upload.