SMFHacks.com

SMF Gallery Pro => Support => Feature Requests => Topic started by: Anmer on July 27, 2021, 06:00:24 am

Title: Gallery Pro File Download Names
Post by: Anmer on July 27, 2021, 06:00:24 am
I would like to preserve the uploaded file name when it's downloaded.

For example, if an uploaded file is named:

BoeingB744.bmp

I'd like that to be the name that the download uses instead of the anonymised, random one applied to the stored image, which might be:

1-260721160830-17.bmp

SMF forum attachments are also randomised on the server but retain the original file name when downloaded from a post.

Is this something that could be a configuration setting?
Title: Re: Gallery Pro File Download Names
Post by: SMFHacks on July 27, 2021, 07:46:13 am
Would have to be made currently it is random filenames. For physical storing on the server could maybe do orginalfilename-pictureid.extension that might be possible.
Title: Re: Gallery Pro File Download Names
Post by: Anmer on July 27, 2021, 07:53:34 am
Thanks for getting back.

Can I confirm that there's currently no way to achieve this without adding a new feature?
Title: Re: Gallery Pro File Download Names
Post by: SMFHacks on July 27, 2021, 07:56:20 am
That is correct.
Title: Re: Gallery Pro File Download Names
Post by: Anmer on July 28, 2021, 03:31:54 am
Do you think retaining the original file name for downloads could be delivered and if so when?

I'm not looking for a definitive "Yes" nor a confirmed implementation date, just an indication of timescales as this will influence deploying Gallery Pro on my forum. And my continued evaluation and testing.

Thanks.
Title: Re: Gallery Pro File Download Names
Post by: SMFHacks on July 28, 2021, 10:57:02 am
Is this just when an item is downloaded? If so I can do that more easily.

Or do you want the files in the gallery to have a  similar filename
Title: Re: Gallery Pro File Download Names
Post by: Anmer on July 28, 2021, 11:47:38 am
Is this just when an item is downloaded? If so I can do that more easily.

Only when the file is downloaded.  Same as Attachments in a forum message.  The file on the server can remain anonymised.
Title: Re: Gallery Pro File Download Names
Post by: SMFHacks on July 28, 2021, 03:21:28 pm
This has been completed.  When using the download item option.  You can download the latest release for this update. I did this quickly since it was a good idea!
Title: Re: Gallery Pro File Download Names
Post by: Anmer on July 28, 2021, 03:27:42 pm
Thank you once again.

Is the latest release available yet?

The latest I can see is:

9.0beta3
Title: Re: Gallery Pro File Download Names
Post by: SMFHacks on July 28, 2021, 03:31:35 pm
Yes it's 9.0beta3a  i don't update the version number.

Just note this only takes affect for new uploads going forward.
Title: Re: Gallery Pro File Download Names
Post by: Anmer on July 28, 2021, 03:36:31 pm
Thanks, found it just after I posted!

And now tested and working as stated.

I am so appreciative of your excellent response and support.

Brilliant.