Image path has a double name

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
greenfish
User
Posts: 107

Image path has a double name

Post by greenfish »

When I upload an image to my uploads folder..... "projectname/image_uploads/" directory, it shows like this in the browser when I click on the link, "htp://mywebserver/projectname/projectname/image_uploads/image.png".
Why does it add an extra "projectname" to the path?

Thanks in advance. :)


danielc
User
Posts: 1601

Post by danielc »

What is your upload folder specify? It is relative to your application root. So, in your case, only input image_uploads/ into Upload folder. See PHP settings in help file.


greenfish
User
Posts: 107

Post by greenfish »

The path I have in the Upload folder under General Options is image_uploads/. So I am not sure what else I am supposed to configure. :(
Thanks.


danielc
User
Posts: 1601

Post by danielc »

  1. Check "Edit Tag" for your upload field to see if you have specify upload folder here.
  2. Check if you modify your filename during your Row_Inserting server event.

Need to step by step to trace.

Does your image display with extra projectname?

Are you using v10.0.5?


greenfish
User
Posts: 107

Post by greenfish »

"Need to step by step to trace." Good advice :)
I started with just the basic settings.....everything looked good until I got to " application root folder" and "destination folder".
They were different. I changed them the way they are supposed to be, and whala! It worked!

Thanks danielc!


Post Reply