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

> @blavejr it's still not working. I already have a folder. The "mv" function executes successfully but file never uploaded to give folder. Will the be any issue with express version? #261

Open
hadedeji10k opened this issue Dec 15, 2020 · 8 comments

Comments

@hadedeji10k
Copy link

@blavejr it's still not working. I already have a folder. The "mv" function executes successfully but file never uploaded to give folder. Will the be any issue with express version?

not working directories are created but still image is not moving to the directory

Originally posted by @asadalien in #54 (comment)

@navkc11
Copy link

navkc11 commented Jul 26, 2022

hello i have similar problem this create the file in folder, but the file is empty. this what i am write:
file.mv(./${filePath})

@hadedeji10k
Copy link
Author

Can you share your code?

How you receive the file and how you intend saving the file?

@navkc11
Copy link

navkc11 commented Jul 26, 2022

i recive the file and path from client app. and save in dir in the server. the dir included in filePath

@hadedeji10k
Copy link
Author

Is the image saving but it's null?

Or the image is not getting saved?

@navkc11
Copy link

navkc11 commented Jul 26, 2022

the file saved in the folder, but withot the content.

@navkc11
Copy link

navkc11 commented Jul 26, 2022

and in my server, i download a file from the repo in gitlab to this folder. when this heppens suddenly the content loads to the file...

@hadedeji10k
Copy link
Author

Have you tried this on your local machine?

Better still, kindly share your current code to know where the issue lies

@residentcode
Copy link

residentcode commented Jan 21, 2024

const {saveBufferToFile} = require("express-fileupload/lib/utilities");

saveBufferToFile(imageFile.data, uploadPath, function(err) {
            if (err)
                return res.status(500).send(err);
        })

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

No branches or pull requests

4 participants