Announcement

#1 2019-06-06 19:40:03

Renka
Member
Australia
2019-06-06
16

Filename truncated

Hello,

When uploading pictures the filenames are truncated. That's annoying because it happens regularly that, for some reason, a picture is not uploaded correctly and it's impossible to see which one, because the end of the filename (with the number) is not visible. Because the form takes the whole screen anyway, there's absolutely no reason whatsoever to shorten the filename.
First picture shows complete filenames.
Second picture shows truncated filenames.
As you can see there's plenty of room to display the full filename.
Hope you have a solution.

Piwigo version: Latest
PHP version: 7.2.7
MySQL version: 10.0.38-MariaDB-cll-lve - MariaDB Server

Last edited by Renka (2019-06-06 19:42:36)

Offline

 

#2 2019-06-10 12:40:53

eliz82
Member
Romania
2016-04-27
281

Re: Filename truncated

what you mean by Piwigo is the "latest" ?
if it's 2.10 beta maybe you should report this issue on Piwigo github https://github.com/Piwigo/Piwigo/issues or to it's specific thread on the forum.
i know they have added a new uploader interface to 2.10 so it may have some bugs.

Offline

 

#3 2019-06-10 14:14:55

Renka
Member
Australia
2019-06-06
16

Re: Filename truncated

By latest, I mean the latest version available for normal download from the piwigo website. At this moment that is 2.9.5. This is not limited to this version.
Have you at least looked into the problem I described?
As you would have seen if you did, the filenames are truncated after 28 characters.

Offline

 

#4 2019-06-10 14:38:51

erAck
Only trying to help
2015-09-06
1998

Re: Filename truncated

May it be that the entire path+filename is longer than 255 characters? That could be a reason.


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2019-06-10 19:02:05

Renka
Member
Australia
2019-06-06
16

Re: Filename truncated

I am not uploading folders, I am uploading files. In the webform only filenames are listed, no paths.
It's the filenames that are truncated at the end, just where I put a number and when for some reason a file is not uploaded correctly, I am unable to see what file it is. So I have to go to the album, after the upload and try to figure out what picture is missing. Because I sometimes have a few 100 pics uploaded, that is time consuming and annoying.
Don't tell me no one else has this problem?
I would prefer to use ftp, but as that is so limited (no characters as ' or () or whatever) I have sometimes no other option than the webform upload.

This is what I get :

Latest Pictures from the Bar...

instead of :

Latest Pictures from the Barbeque - 059.jpg

Of course I could just call them 001, 002, 003, etc. But I would prefer a descriptive name. It seems I'm the only one.

Offline

 

#6 2019-06-10 20:04:08

executive
Member
2017-08-16
1214

Re: Filename truncated

Your suggestion makes sense to me.

What is the URL to the form that you used to upload?

Offline

 

#7 2019-06-10 21:12:15

Renka
Member
Australia
2019-06-06
16

Re: Filename truncated

https://aardvark.news/FamilieArchief/ad … mp;album=1

It's a site that I created for some friends, but it's a private gallery.

Anyway, the interface will be the same for you on your site.

Hope this helps.

Offline

 

#8 2019-06-11 02:45:25

executive
Member
2017-08-16
1214

Re: Filename truncated

Can you please try if this form behaves any differently:

https://aardvark.news/FamilieArchief/in … add_photos

Offline

 

#9 2019-06-11 07:47:59

Renka
Member
Australia
2019-06-06
16

Re: Filename truncated

No, I'm sorry, it only shows the first 28 characters.

Offline

 

#10 2019-06-14 00:13:09

magscanner
Member
2019-06-01
7

Re: Filename truncated

Hi, I'm having the same problem. I'm using 2.9.5, with GreyDragon or Bootstrap Darkroom themes. Since I'm doing initial setup, I had assumed it was due to some option I hadn't selected, but I couldn't figure out which one it might have been.

The filenames themselves are all much shorter than 255 characters, though they are fairly long.

The image files were imported using Menalto2Piwigo. The files themselves were brought in via FTP, then synchronized, then the metadata imported from the original MySQL database, in accordance with the M2P procedure. The images are correct, and the metadata imported correctly, but the filenames display truncated.

Here's an example (physical URL):  https://www.sheetmusiccovers.org/piwigo … category/9

Sometimes in the past few days the full filenames have been displayed, but so many things are being tested as I change settings to optimize appearance, that I had not been able to correlate truncation with any specific status of theme, options, etc. However, the URL above will show the problem.

Offline

 

#11 2019-06-14 00:21:25

erAck
Only trying to help
2015-09-06
1998

Re: Filename truncated

magscanner wrote:

Hi, I'm having the same problem.

I doubt that. Take a look at the source code of your example page, line 45 (in Firefox it even starts to display in red font). The page code ends there because of the unclosed comment

Code:

<!-- <h1>Sheet Music Covers 1800-1929</h1> -!>

that instead should be

Code:

<!-- <h1>Sheet Music Covers 1800-1929</h1> -->

Running Piwigo at https://erack.net/gallery/

Offline

 

#12 2019-06-14 00:59:37

magscanner
Member
2019-06-01
7

Re: Filename truncated

erAck, you are correct! I should not type when I am tired.

However, the problem remains, or at least I think it does.

See e.g. the one I linked, or here is another one: https://www.sheetmusiccovers.org/piwigo … ategory/33

I am fully prepared to believe it is a mistake on my part, or at least a lack of understanding. However, I have not been able to find the cause.

Offline

 

#13 2019-06-14 01:13:03

magscanner
Member
2019-06-01
7

Re: Filename truncated

Example with shorter title--

https://www.sheetmusiccovers.org/piwigo … ategory/13

filename: 1914 Apple Sass Liegmann Harry Belding

truncated display is in the breadcrumb line, for which the HTML code appears to be:

<div class="nav-breadcrumb d-inline-flex"><a class="nav-breadcrumb-item" href="/piwigo/">Home</a><a class="nav-breadcrumb-item" href="index.php?/category/10">Sheet Music 1910-14</a><a class="nav-breadcrumb-item" href="index.php?/category/13">Sheet Music 1914</a><span class="nav-breadcrumb-item active">1914 Apple Sass Liegmann Harry Belding</span></div>

Code above looks like it should display full filename, but displayed breadcrumb line is truncated to:

Home/Sheet Music 1910-14/Sheet Music 1914/1914 Apple Sass Liegmann Harry Belding...

Something is truncating displayed filename.

Offline

 

#14 2019-06-14 01:24:16

magscanner
Member
2019-06-01
7

Re: Filename truncated

I must be very tired today.

What is displayed on my screen:
Home/Sheet Music 1910-14/Sheet Music 1914/1914 Apple Sass Liegmann Ha...

What I get if I Copy and Paste (into this forum, for example):
Home
Sheet Music 1910-14
Sheet Music 1914
1914 Apple Sass Liegmann Harry Belding

This is surprising. It's another reason to think I have incorrectly set some display option in the theme that is causing this.

Offline

 

#15 2019-06-14 01:25:38

Renka
Member
Australia
2019-06-06
16

Re: Filename truncated

Mr magScanner, I think we are talking about two different things.

You have "Home/Sheet Music 1910-14/Sheet Music 1914/1914 Apple Sass Liegmann Harry Belding..." in a breadcrumb on a photo page.
So it seems there is a problem with that.

But my problem was different: I was talking about the web upload form where you drop your files to upload to an album.
Files are uploaded correctly, they show correctly in the album, all that is ok, also my breadcrumbs are correct.
But when I drop files on the form, only the first 28 characters are shown, so if there is a file with an upload problem, I am unable to see which one it is, because the file number at the end of the name is not shown.
I think no one is using this method for uploading anymore, because FTP and synchronizing is easier, but anyway, if you use it and have longer filenames, it can be a little bit frustrating.

Last edited by Renka (2019-06-14 01:26:49)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact