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

Error: ENOENT: no such file or directory, open 'p4.jpeg/p4.jpeg' #36

Open
CemKutlar opened this issue Feb 23, 2023 · 2 comments
Open

Error: ENOENT: no such file or directory, open 'p4.jpeg/p4.jpeg' #36

CemKutlar opened this issue Feb 23, 2023 · 2 comments

Comments

@CemKutlar
Copy link

When I try to register a new user and submit a form I got this error.

Server logs say:

::1 - - [23/Feb/2023:10:33:46 +0000] "POST /auth/register HTTP/1.1" 500 199
Error: ENOENT: no such file or directory, open 'p4.jpeg/p4.jpeg'

Also when I inspect the website, I see an error in the Form.jsx file.

Screenshot 2023-02-23 at 13 44 39

Any idea how to fix this issue?

@MitraPandit
Copy link

Try uploading a picture that is not in the assets folder. I had a similar issue wherein uploading any image in the assets folder wont work, so I uploaded a random image from my system, and then it started working.

@tanmaydot
Copy link

So to solve this you need to copy your public/asset folder from the server to outside of it where client and server folders are, that seem to do the trick for me.

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

3 participants