how to copy image into folder

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
sandy
New Member
New Member
Posts: 9
Joined: Sun Nov 02, 2008 7:32 am

how to copy image into folder

Post by sandy »

hi
i have made one page and i have one problem.
how to copy uploaded image into folder?
NaN

Re: how to copy image into folder

Post by NaN »

Why don't you upload it again in the desired folder?
sandy
New Member
New Member
Posts: 9
Joined: Sun Nov 02, 2008 7:32 am

Re: how to copy image into folder

Post by sandy »

but when click on that image i have to display its destination and title which is entered in admin.
all code works but image not copy to folder.
NaN

Re: how to copy image into folder

Post by NaN »

Where do you click on what image ???
sandy
New Member
New Member
Posts: 9
Joined: Sun Nov 02, 2008 7:32 am

Re: how to copy image into folder

Post by sandy »

i have to make one page that contain image which is comes from admin(in admin i made new section which have title,destination
and image).On home page i have to show that image only and randomly.when click on that image then that image details are show on new page.So all coding works fine.The problem is that when upload image from admin that image not copy in folder.
NaN

Re: how to copy image into folder

Post by NaN »

Where do you upload the file to and where do you call the image from?
Are you sure that the path where you uploaded the file is the same where you call the image from?
Do you have write permissions for groups to that folder (umask 755)?
Post Reply

Return to “Developers Discussion”