copy uploaded file to local cache after uploading