Skip to content

Instantly share code, notes, and snippets.

@fakiolinho
Last active November 11, 2019 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakiolinho/9bd97fd1a01407f11f7f75bf7b0c9323 to your computer and use it in GitHub Desktop.
Save fakiolinho/9bd97fd1a01407f11f7f75bf7b0c9323 to your computer and use it in GitHub Desktop.
import request from 'utils/request';
export const downloadFileRequest = id =>
request.get(`/files/${id}`, {
responseType: 'blob',
timeout: 30000,
});
@BenSlabbert
Copy link

thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment