Opened 12 years ago

Closed 12 years ago

#797 closed Bug (invalid)

File upload problem when using tilde in path

Reported by: anonymous Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Pending Cc:

Description

I often set up accounts with no resolved domainname, this will end up looking like http://an.I.P.Address/~username

However, the file uploads never seem to work without a resolved domainname, probably because of the tilde (since I expect it to handle IP-addresses properly). I could use the absolute path so the files will upload, but then they won't be usable (because an img-tag with an absolute src path doesn't work).


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1626729&group_id=75348&atid=543653

Change History (4)

comment:1 Changed 12 years ago by Martin Kou

Reporter: changed from Martin Kou to anonymous

comment:2 Changed 12 years ago by Martin Kou

I don't know if my bug is related to this one here, but I have a tilde in my server name and figured out that fcke cuts off the last letter of my local path (I haven't quite figured out how to set paths yet-that should also be made easier) say my upload script php/config.php is set to this: $ConfigUserFilesPath? = '/Sites/q2/wor8/grafik/' ; then in the test.html I see this:

<b>Warning</b>:  opendir(/Users/myNam/Sites/q2/wor8/grafik/image/) [
<a href="function.opendir">function.opendir</a>
]: failed to open dir: No such file or directory in ...

However, the correct path would have been: /Users/myName/Sites/q2/wor8/grafik/image/ See, the e of myName has been cut off somewhere in the process of working with the string. I don't know maybe that's why I'm having so many problems setting up the filemanager.


Moved from SF. Original poster: Anonymous

comment:3 Changed 12 years ago by Alfonso Martínez de Lizarrondo

Keywords: Pending added

What is the connector that you are using?

comment:4 Changed 12 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

Expired

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy