N
neenmarie
I'm using FTP to allow a user to upload and overwrite a database and a folder
with images referenced in the database. I only want the user to upload to
one specific folder and not have any access to the rest of the website. So,
I created a folder named "ftp". Inside that folder is another folder for the
pictures called "dbpictures" and the "fpdb" folder that holds the database.
No matter what path I put in the database to reference the picture - unless
it is in the image folder, it will not display. In other words - if I put "
images/pict1.jpg " in the database field and save the picture to the image
folder it displays. But, if I put " ftp/dpictures/pic1.jpg " - or any other
location - it will not display. I really don't want to give the user access
to anything except the folder I named "ftp". Any idea what I may be doing
wrong with the path....or do the pictures always have to be in the image
folder for some reason?
with images referenced in the database. I only want the user to upload to
one specific folder and not have any access to the rest of the website. So,
I created a folder named "ftp". Inside that folder is another folder for the
pictures called "dbpictures" and the "fpdb" folder that holds the database.
No matter what path I put in the database to reference the picture - unless
it is in the image folder, it will not display. In other words - if I put "
images/pict1.jpg " in the database field and save the picture to the image
folder it displays. But, if I put " ftp/dpictures/pic1.jpg " - or any other
location - it will not display. I really don't want to give the user access
to anything except the folder I named "ftp". Any idea what I may be doing
wrong with the path....or do the pictures always have to be in the image
folder for some reason?