disable filestack code in image upload for now
This commit is contained in:
parent
238fc8a382
commit
8f84e5d12d
|
|
@ -1,5 +1,5 @@
|
|||
import React, { useEffect } from 'react'
|
||||
import * as filestack from 'filestack-js';
|
||||
//import * as filestack from 'filestack-js';
|
||||
import { Button } from 'reactstrap';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import JKModalDialog from '../common/JKModalDialog';
|
||||
|
|
@ -21,14 +21,14 @@ const JKProfileAvatarUpload = ({show, toggle}) => {
|
|||
}, [currentUser]);
|
||||
|
||||
const openFilePicker = () => {
|
||||
const client = filestack.init(window.gon.fp_apikey);
|
||||
client.picker({
|
||||
accept: 'image/*',
|
||||
maxFiles: 1,
|
||||
onFileUploadFinished: (response) => {
|
||||
console.log(response);
|
||||
}
|
||||
}).open();
|
||||
// const client = filestack.init(window.gon.fp_apikey);
|
||||
// client.picker({
|
||||
// accept: 'image/*',
|
||||
// maxFiles: 1,
|
||||
// onFileUploadFinished: (response) => {
|
||||
// console.log(response);
|
||||
// }
|
||||
// }).open();
|
||||
}
|
||||
return (
|
||||
<JKModalDialog
|
||||
|
|
|
|||
Loading…
Reference in New Issue