Jump to content

Upload file to server


Pavlin24

Recommended Posts

I saw the "post_max_size" settings . It is 60M. And upload_max_filesize is 50mB. I saw this with phpinfo() function.( see attachment).

The file I try to upload is 14kB.

So the the size of the file is not the reason.

Doc4.doc

Edited by Pavlin24
Link to comment
Share on other sites

  • 3 weeks later...

Finaly I succeed to upload a file. The problem was resolved by itself. I have not done anything.

But my hosting deliverer have had problems. After my site ren again I succeed to upload.

Thank you for the help.

Link to comment
Share on other sites

  • 1 month later...

Hi again.

I have a question related to this topic.

In the code above are allowed image files for uploading.

Now I want to allow .php files for uploading.

 

What script exactly I must put.

 

I mean, for images script is ($_FILES["file"]["type"] == "image/jpeg")

 

What will be for php "? /php"

Link to comment
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...