Last active
November 11, 2019 13:33
-
-
Save fakiolinho/9bd97fd1a01407f11f7f75bf7b0c9323 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import request from 'utils/request'; | |
export const downloadFileRequest = id => | |
request.get(`/files/${id}`, { | |
responseType: 'blob', | |
timeout: 30000, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you :)