Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploadFile function #12

Open
ronakvpanchal opened this issue Sep 26, 2017 · 1 comment
Open

uploadFile function #12

ronakvpanchal opened this issue Sep 26, 2017 · 1 comment

Comments

@ronakvpanchal
Copy link

This function is using the fs.existsSync to check if a file exists locally on the system which is deprecated and usually returns false if there is no permission to access the file.

Even though the file exists this will not find the file and hence the upload fails on the system.

@icfantv
Copy link

icfantv commented Mar 31, 2020

Probably because this is dated from 2017, fs.existsSync is ok to use and fs.exists is deprecated: https://nodejs.org/api/fs.html#fs_fs_existssync_path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants