question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Component modifies the file name giving an incorrect extra file extension

See original GitHub issue

Hi @Yuvaleros, thanks for this cool component

I found an issue while providing initialFiles as initialFiles={[https://images.pexels.com/photos/1909603/pexels-photo-1909603.jpeg`]}` Dropzone component modifies the file name giving an incorrect extra extension. This is an unexpected behaviour

image

Are you guys able to fix this issue? Thanks a lot

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
panz3rcommented, Apr 30, 2020

Hi @mballeng91 ,

Thanks for your feedback.

I’ll check this once again, I think to know the cause of the issue and should be related to extensions not matching MIME types (like jpeg and jpg both matching image/jpeg).

Have you got an example filename that’s causing you issues?

1reaction
panz3rcommented, Apr 24, 2020

Hi @mballeng91 ,

You are right, although the changes have been merged they are yet to be published to npm, for now if you need to upgrade you can install the module directly from GitHub

for release v3.x

❯ npm i yuvaleros/material-ui-dropzone#d9f1c22

(the same also works with yarn)

for release v2.x

❯ npm i yuvaleros/material-ui-dropzone#d26e28b

To see the differences between the 2 version see the CHANGELOG.

Thanks for your feedback and patience.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A file is in a different format than its extension indicates in Excel
An issue with a file name extension might occur when a workbook that you are trying to open is unreadable and the contents...
Read more >
Masquerading: Double File Extension, Sub-technique T1036 ...
Adversaries may abuse a double extension in the filename as a means of masquerading the true file type. A file name may include...
Read more >
Filename extension - Wikipedia
A filename extension, file name extension or file extension is a suffix to the name of a computer file (e.g., .txt , .docx...
Read more >
How do I change the extension of multiple files?
Try the command below, which is flexible with sub-directories. It will rename all .txt files under directory structure with a new extension. find...
Read more >
How to get a file's extension in PHP? - Stack Overflow
The dot character is just another character in the main filename, and filenames can have multiple extensions, usually representing nested ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found