Unable to upload a file... - Forum

Forum Navigation
You need to log in to create posts and topics.

Unable to upload a file...

Hi all,

I am creating a base64 encoder and I want it to have a functionality to upload a file through a form.  I am using input file type but it does not send my file to php. How can I achieve it?

Thanks.

@ruby if you want to send files through a web form, then be sure the form enctype attribute is set to "multipart/form-data".
To do that in VisualNEO Web just set the "enctype" property to "fmultipart" (see attached image).

On the other hand you can also use neoPhp to save files directly on the server. Just encode them to base64 format before using neoPhpFileWriteFromBase64 command.

Let me know if you have any questions.

Regards.

Uploaded files:
  • You need to login to have access to uploads.

Thanks I used the same procedure but it did not work. Is there any other way to do that.

One more thing if I change the type of input to email or file it does not post to php.

@ruby It's strange, please attach a simple sample isolating the problem you are facing so I can check it out.
Your target .php file is quite important here.
Note that neoPhpFileWriteFromBase64 works perfectly.
There are also some third party plugins to allow uploading files (check the plugins section)

Regards.

javadrajabihakami has reacted to this post.
javadrajabihakami