react-upload-file icon indicating copy to clipboard operation
react-upload-file copied to clipboard

Component does not work

Open christophedebatz opened this issue 7 years ago • 4 comments

Hi everybody,

Thank's for this component but at home it does not work.

Indeed, the props.options are not overidded at all.

I make it worked, I just replaces the block by this one:

const options = _.defaults(props.options, { dataType: 'json', timeout: 0, numberLimit: 0, userAgent: window.navigator.userAgent, multiple: false, withCredentials: false, beforeChoose: emptyFunction, didChoose: emptyFunction, beforeUpload: emptyFunction, didUpload: emptyFunction, uploading: emptyFunction, uploadSuccess: emptyFunction, uploadError: emptyFunction, uploadFail: emptyFunction, onAbort: emptyFunction });

With lodash:

import _ from 'lodash';

christophedebatz avatar Feb 16 '17 15:02 christophedebatz

@christophedebatz Brilliant! Would you mind making a PR?

wubocong avatar Feb 17 '17 17:02 wubocong

If the problem was fixed why is the issue not closed?

Moejoe90 avatar Jun 19 '17 13:06 Moejoe90

@wubocong Wow I've just discover the principle of GitHub notifications (at the top right corner), so I'd just see that you replied to my old comment ;) sorry for the PR dudes. Have a nice coding!

christophedebatz avatar Jan 02 '18 21:01 christophedebatz

doesnt work also ,

index.js:29900 Uncaught TypeError: Cannot read property 'target' of undefined

'file' is not defined no-undef 'user' is not defined no-undef 'mill' is not defined no-undef

ImenTurki avatar Jan 19 '18 21:01 ImenTurki