Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error uploading hidden UNIX files #9

Open
bratekarate opened this issue May 2, 2016 · 0 comments
Open

Error uploading hidden UNIX files #9

bratekarate opened this issue May 2, 2016 · 0 comments

Comments

@bratekarate
Copy link
Contributor

When uploading a hidden file from a UNIX system -- that is, a file that starts with a dot (.) -- an exception is thrown from within AttachmentableService.

The Exception is caused by an invalid instance of the type Attachmentable: The file name is missing. Apache Commons FilenameUtils is used by AttachmentableService to retrieve the basename of the file. Unfortunately, this does not work for hidden files; getBaseName just returns an empty String, because it thinks the dot introduces the file extension.

If there is a workaround for this issue, I will be happy to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant