Jump to content

Uploading files using PHP


padams

Recommended Posts

I have set up a form that enables me to upload files to my web server, and it does it by creating a temp table then moving it to a directory called "uploads". However, I get an error telling me that I don't have permission to write to this directory. Is there a way around this or do I need to take it up with out web host?

 

Also, I know that it isn't secure to enable files to be uploaded so I have password-protected the upload pages, but is this sufficient? If not, what would a more secure method be?

 

I realise I could simply FTP the files myself but the site is for somebody else who struggles on a computer and a web form would make their (and my!) life a lot easier.

Link to comment
Share on other sites

i'm not sure what your host if offering you, but if you are running cpanel then click file manager, then click on the folder you want to allow uploads to, next click change permissions and there are our permission options, such as read write and execute

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.