[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
File-Upload: Problem with File Extension  XML
Forum Index -> Development
Author Message
brandt

Power User
[Avatar]

Joined: 12/03/2008 16:37:34
Messages: 45
Location: Bern
Offline

Hi Captain,

we encountered a problem with the handling of file extensions.

We have an upload component with following allowed file extensions:

public String getFileExtensions() {
return "jpg;jpeg;tif;tiff;pdf;png";
}

Our user wants to upload a file with filename = "IMG_0623.jpg.pdf".

(I know: It is a strange filename).

But if the user selects this file for upload, the upload will not start. It seems that the captaincasa logic detects as file extension "jpg.pdf" (which is incorrect) and because "jpg.pdf" is not defined as uploadable file extension the upload does not start.

Can you reproduce this behaviour?

CaptainCasa-Version = 20200427

Regards
Joe
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Joachim,

we can reproduce. Well, actually it's not a problem of the upload processing but of the IMAGEREDUCTION which is triggered if the file name contains a ".jpg". So this needs to be more careful.

The error is fixed. We will provide an official version for you romorrow morning...

Thanks for your message + sorry from our side...!
Björn


Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...fixed with 20200609... - Björn

Björn Müller, CaptainCasa GmbH
brandt

Power User
[Avatar]

Joined: 12/03/2008 16:37:34
Messages: 45
Location: Bern
Offline

Hi Captain,

thank you so much.

Regards
Joe
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team