Lunoxx's avatar

Problem with file upload: The *file-input-name* failed to upload.

Hello! I started exploring this framework and I encountered a problem that I can't solve, although I have been trying for two days.

The problem is this: I created a form with a text input, file input and a button, but it gives me an error: "The proof link failed to upload.". Nothing appears in the log and the problem is only on the webhost. It works correctly on the premises.

I tried to set permissions to 777 on public/images/weight_proof (images should be stored here).. but, same issue.

0 likes
2 replies
Maria30's avatar

First make sure that you have enctype="multipart/form-data in your form

<form action="/action_page" method="post" enctype="multipart/form-data">

Then try with a small file to see if it is a matter of php memory

Can you share your code?

Snapey's avatar

"The proof link failed to upload."

does this mean something to you? it doesn't seem like a system error

Please or to participate in this conversation.