Jump to content

why can't get $_FILES in my new tab for admin


Recommended Posts

i develop a ADMIN tab for edit some new info , and it contain a image need to upload
public function displayForm() ,

i add ,

but when i submit the form

in public function postProcess(),

i can't get data from $_FILES ,


Share this post

Link to post
Share on other sites

Check to make sure you have instructed your form to send files. For example, use the following:

'<form action="'.$_SERVER['REQUEST_URI'].'" method="post" enctype="multipart/form-data">'

If your code is the following, then it won't send file information:

'<form action="'.$_SERVER['REQUEST_URI'].'" method="post">'

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More