File tree 2 files changed +3
-3
lines changed
app/components/base/file-uploader
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ export const useFile = (fileConfig: FileUpload) => {
216
216
handleAddFile ( uploadingFile )
217
217
startProgressTimer ( uploadingFile . id )
218
218
219
- uploadRemoteFileInfo ( url ) . then ( ( res ) => {
219
+ uploadRemoteFileInfo ( url , ! ! params . token ) . then ( ( res ) => {
220
220
const newFile = {
221
221
...uploadingFile ,
222
222
type : res . mime_type ,
Original file line number Diff line number Diff line change @@ -324,8 +324,8 @@ export const verifyForgotPasswordToken: Fetcher<CommonResponse & { is_valid: boo
324
324
export const changePasswordWithToken : Fetcher < CommonResponse , { url : string ; body : { token : string ; new_password : string ; password_confirm : string } } > = ( { url, body } ) =>
325
325
post < CommonResponse > ( url , { body } )
326
326
327
- export const uploadRemoteFileInfo = ( url : string ) => {
328
- return post < { id : string ; name : string ; size : number ; mime_type : string ; url : string } > ( '/remote-files/upload' , { body : { url } } )
327
+ export const uploadRemoteFileInfo = ( url : string , isPublic ?: boolean ) => {
328
+ return post < { id : string ; name : string ; size : number ; mime_type : string ; url : string } > ( '/remote-files/upload' , { body : { url } } , { isPublicAPI : isPublic } )
329
329
}
330
330
331
331
export const sendEMailLoginCode = ( email : string , language = 'en-US' ) =>
You can’t perform that action at this time.
0 commit comments