When I upload a picture and then try to see it the img tag printed is similar to the following:

http://localhost/drupal-5.7/C:\xampp\htdocs\drupal-5.7\files/mypic.jpg

The part of the URL that is underlined shouldn't be there.

Am I doing something wrong? Maybe I have a wrong setting (drupal newbie)?

Comments

dopry’s picture

Status: Active » Postponed (maintainer needs more info)

Are you running on windows? It seems the url's are being created with a windows filepath... someone who has access to a windows system needs to debug that... I don't have access to one. does it happen with the 2.x branches? how is your site configured? What is your files directory set to?

andrew.fulton’s picture

I think this will happen if you set the File system path at admin/settings/file-system to be a full windows path, rather than just relative to the root of the installation. I am running drupal locally on xampp and just have it set to 'sites/www.site.com/files' and it works fine.
{I realise that this was posted an age ago, and noone may care anymore, but still, may help somebody}

quicksketch’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing after lack of activity. The original author hasn't gotten back to us and it's nearly a year past.

The 1.x version is also no longer supported.