Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: pgermain - kesäkuu 10, 2011, 06:19:34 IP

Otsikko: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 10, 2011, 06:19:34 IP
Hello

On SMF 1.1.13, i can't upload two files which have same name.

I can't find the option "encrypt attachments filenames"

Is there a way to do that with php code, and if so, the files which already are on the server will keep the right place ?

Is there an option about it in smf 2

thank a lot

Pierre

Pierre
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 11, 2011, 09:58:09 AP
Hi, pgermain and welcome!

Actually, have a look in your attachments directory.

I think you'll find that the names are pretty meaningless, in there. ;)

No file extensions, either.

When you say "I can't upload two files which have same name.", do you mean in the same post?
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 11, 2011, 04:41:39 IP
Thank you for your response !

In the directory, files are with their names and extension, and i can't upload the same file either in the same message or in different message

i think that's attachments database don't accept the same filename twice....?

But is there a way to use the "encrypt files" method (i can't find this option) and if so, do you think i 'll loose all the files that are allready as attachments ?

Many thanks !
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 11, 2011, 04:56:28 IP
How did you look in the directory?

If you look using FTP, are they still actual filenames, with the extensions? If they are, I suspect that there's something wrong, because every SMF forum that I've ever seen has the attachments renamed to some gibberish with no extension.
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 11, 2011, 05:19:11 IP
i look with FTP...

Files before October 2009 are with name and extension, the others, in 2010 and 2011 are "encoded" without extension...
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 11, 2011, 05:20:34 IP
Did you add any mods, at about that time, by any chance?
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 11, 2011, 05:22:42 IP
yes, "Tapatalk SMF Plugin"....

but even if i remove it, problem remain the same

and when i upload a file (picture), its real name appears under the picture...
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 11, 2011, 05:26:34 IP
Ah...

You might get an answer, if you read that mod's support topic, then.

If it's not mentioned, maybe you could post, there.

To save a lot of typing, maybe link to this one?
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 11, 2011, 05:56:24 IP
yes, "Tapatalk SMF Plugin"....

but even if i remove it, problem remain the same

and when i upload a file (picture), its real name appears under the picture...
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 12, 2011, 12:25:40 IP
Yeah, the real name will appear, there.

I just went to your forum and looked at the error logs.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSmileys%2Feek4.gif&hash=9fee0a8072bc4f74188fb2478fa0f3163b046d32)

You have 134 pages of them!

I'm thinking it might be wise to think about almost starting from scratch.
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 12, 2011, 01:42:57 IP
thank you for your time

if i install smf 2.0 is there a way to keep smf 1.1.14 databases ( i mean users and messages) ?
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 12, 2011, 01:44:46 IP
If you upgrade, all posts, members and topics will remain, as they are.

Before you uprade, though, read my sig, won't you?
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 12, 2011, 01:55:39 IP
You mean backup and...   backup ?

yes i do that !

thank you very much !
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 12, 2011, 01:58:05 IP
Pleasure, my friend! :)

Don't forget to backup the database, too. :)
Otsikko: Re: problem with attachments filename
Kirjoitti: pgermain - kesäkuu 13, 2011, 08:17:59 AP
thanks for your help !

problem was in table : "smf_settings "

                     `smf_settings` (`variable`,`value`) VALUES ('attachmentEncryptFilenames','1'); 

mine was :    `smf_settings` (`variable`,`value`) VALUES ('attachmentEncryptFilenames','0');


thank for your time !
Otsikko: Re: problem with attachments filename
Kirjoitti: kat - kesäkuu 13, 2011, 08:23:38 AP
Wahay!

Glad you got it sorted out, man!