Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: flapper - helmikuu 05, 2005, 07:31:26 IP

Otsikko: Posting attachments
Kirjoitti: flapper - helmikuu 05, 2005, 07:31:26 IP
Sudenly when a member posts a attachment you get this under the picture


C:\Documents and Settings\Mark\My Documents\My Pictures\airbus.jpg (15.42 KB, 340x227 - viewed 1 times.)


im sure before it only used to say

airbus.jpg (15.42 KB, 340x227 - viewed 1 times.)

members are complaining becouse it can now show there  real name

can any one help please.
Otsikko: Re: Posting attachments
Kirjoitti: [Unknown] - helmikuu 06, 2005, 02:53:14 AP
Have you made any changes to the source code?  Applied any modifications?

SMF by default strips off the path information.

-[Unknown]
Otsikko: Re: Posting attachments
Kirjoitti: flapper - helmikuu 06, 2005, 05:33:35 AP
No did not change anything, but my site did go down the other evening, becouse of mysql database and messed up my bridge between coppermine and smf forum.
Otsikko: Re: Posting attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 01:46:15 AP
Do you have "encrypt filenames" on or off?

-[Unknown]
Otsikko: Re: Posting attachments
Kirjoitti: flapper - helmikuu 07, 2005, 04:05:06 AP
Very weird, it was selected on, but when I turn it off, it now looks like this:

CDocuments_and_SettingsMarkMy_DocumentsMy_PicturesBackgroundtop.jpg (3.24 KB, 276x83 - viewed 3 times.)    the \ is now missing.   

Does anyone know what file generates this, maybe its corrupt and needs replacing.
Otsikko: Re: Posting attachments
Kirjoitti: [Unknown] - helmikuu 07, 2005, 04:18:15 AP
Post.php and Subs.php together do this functionality.

-[Unknown]
Otsikko: Re: Posting attachments
Kirjoitti: flapper - helmikuu 07, 2005, 09:37:40 AP
Lainaus käyttäjältä: [Unknown] - helmikuu 07, 2005, 04:18:15 AP
Post.php and Subs.php together do this functionality.

-[Unknown]


Replaced both these files with backups from a week ago before this started, and its still the same.
Otsikko: Re: Posting attachments
Kirjoitti: [Unknown] - helmikuu 14, 2005, 02:53:04 AP
In Post.php, what happens if you find this:

if ($_FILES['attachment']['name'][$n] == '')
continue;


And add after that:

$_FILES['attachment']['name'][$n] = basename($_FILES['attachment']['name'][$n]);

How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

-[Unknown]