Jump to content

Recommended Posts

Posted

I run a few features on my web site that need to automatically upload files to a subdirectory on my site via FTP. I'm trying to run a php code and I keep getting failures on the auto uploads.

 

It seems as though if I don't create a specific FTP account, the auto uploads give me failures to upload. However, I need to upload data to an existing subdirectory, not to an FTP user account. Is this possible?

 

Thanks.

Posted

Setting up an FTP account such as folder@yourdomain.ext and setting the path to the folder should do what you want. When you log into this FTP account it will already be in the folder you want to upload.

 

If you try to use php to do the upload the permissions on the folder will have to be 777 so the web server can write to it.

 

Am I missing something?

Posted
Setting up an FTP account such as folder@yourdomain.ext and setting the path to the folder should do what you want. When you log into this FTP account it will already be in the folder you want to upload.

 

If you try to use php to do the upload the permissions on the folder will have to be 777 so the web server can write to it.

 

Am I missing something?

 

:xmas: Nope, I was! Thanks, Bruce!

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...