[SOLVED] keep the original file name + cb gallery

11 years 8 months ago #125803 by era_watson
How to keep the original file name of the file when uploaded. I want to keep the original file name instead of renaming it into random name. Example of name when uploaded: pg_15454464.doc --> this is wrong it must be the original name.

Please help me. I need a urgent help. Thanks

Post edited by: krileon, at: 2010/03/05 17:54

There will always be a solution!

Please Log in to join the conversation.

11 years 8 months ago #125807 by nant
era_watson wrote:

How to keep the original file name of the file when uploaded. I want to keep the original file name instead of renaming it into random name. Example of name when uploaded: pg_15454464.doc --> this is wrong it must be the original name.

Please help me. I need a urgent help. Thanks


You would need to edit the code and make needed changes.

There is no configuration for this.

Please Log in to join the conversation.

11 years 8 months ago #125888 by era_watson
Hi

I solved it...

in line 292- 294 (approximately)

change

[code:1]$random_upload_pgitem_base = "pg_" . mt_rand();[/code:1]

to
[code:1] $random_upload_pgitem_base = $upload_pgitem_name; [/code:1]

There will always be a solution!

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.177 seconds

Facebook Twitter LinkedIn