Attachments and Windows [message #21835] |
Mon, 20 December 2004 17:47 |
Nick72
Messages: 8 Registered: December 2004
Karma: 0
|
Junior Member |
|
|
Hi, dunno if this counts as a bug or not, but...
I'm on Win2003 and IIS (I know, I know, but certain business requirements, well, require it My attachments upload fine (I can see them in the files folder. However, in the actual post the path to them seems to be wrong. If I include an image in the message for example, I just get a broken x.
In the DB, the first part of the path's don't have \ between them. E.g:
C:domainsmydomain.comFiles\fudforum\3814588639\files\24.atch
I manual inserted \ and it still didn't work.
I have placed \\ instead and the db still doesn't seem to get updated.
Thoughts?
|
|
|
Re: Attachments and Windows [message #21836 is a reply to message #21835] |
Mon, 20 December 2004 17:54 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Check your GLOBALS.php and make sure all windows paths that use \ have \\ or / instead of \.
FUDforum Core Developer
|
|
|
|
Re: Attachments and Windows [message #21839 is a reply to message #21838] |
Mon, 20 December 2004 18:23 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm \\\ is definately not right, \\ should be enough. Have you tried changing them to / instead of \?
To ensure that the file appears you need to update the database, since the file paths are cached.
FUDforum Core Developer
|
|
|
|
Re: Attachments and Windows [message #21841 is a reply to message #21840] |
Mon, 20 December 2004 19:02 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to change the value of the location field inside the attach table.
FUDforum Core Developer
|
|
|
|
Re: Attachments and Windows [message #21843 is a reply to message #21842] |
Mon, 20 December 2004 19:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Sure... open getfile.php inside theme/default directory and put var_dump($r, exit()); somewhere before the normal output.
FUDforum Core Developer
|
|
|
|
|
|
Re: Attachments and Windows [message #21847 is a reply to message #21846] |
Mon, 20 December 2004 19:39 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Hmm you are using FUDforum as part of eGW...
Putting it before the ?> is a bit too late, you need to have it before the contents and the file headers are sent.
If you are seeing a 404 for getfile, try rebuilding the theme.
FUDforum Core Developer
|
|
|
|
|
Re: Attachments and Windows [message #21850 is a reply to message #21849] |
Mon, 20 December 2004 20:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
As far as making things work, I am sure that the theme rebuild is what did the trick.
If you want to make a donation, you can do so via Paypal using the link in my signature.
FUDforum Core Developer
|
|
|