Advertisement:

problem with attachments filename

Aloittaja pgermain, kesäkuu 10, 2011, 06:19:34 IP

« edellinen - seuraava »

pgermain

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

kat

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?

pgermain

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 !

kat

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.

pgermain

i look with FTP...

Files before October 2009 are with name and extension, the others, in 2010 and 2011 are "encoded" without extension...

kat

Did you add any mods, at about that time, by any chance?

pgermain

#6
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...

kat

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?

pgermain

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...

kat

Yeah, the real name will appear, there.

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



You have 134 pages of them!

I'm thinking it might be wise to think about almost starting from scratch.

pgermain

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) ?

kat

If you upgrade, all posts, members and topics will remain, as they are.

Before you uprade, though, read my sig, won't you?

pgermain

You mean backup and...   backup ?

yes i do that !

thank you very much !

kat

Pleasure, my friend! :)

Don't forget to backup the database, too. :)

pgermain

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 !

kat

Wahay!

Glad you got it sorted out, man!

Advertisement: