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

when adding a blob, blob name is ignored and current date used as name instead #70

Closed
kevduggan opened this issue Jun 22, 2018 · 6 comments

Comments

@kevduggan
Copy link

I am added a Blob using the addFile function. the name of the file then gets set to the current date.
screen shot 2018-06-22 at 11 09 48

there doesn't appear to be any way of over-ridding this behaviour (I am using the blob method in IE11 as adding a File object not working). Is there a way to set the filename after the upload (i've tried using setMetadata on the returned File but it had no effect)

debugging you can see that the blob has a name
screen shot 2018-06-22 at 11 07 48

@rikschennink
Copy link
Collaborator

FilePond tests if it's an instance of File or Blob, you can turn a Blob into a file using the following method:

var file = new File([myBlob], 'name.extension');

This might not work on older browsers, I'll see if I can adjust the logic so it tests for name and only sets the name and lastModifiedDate automatically if they're missing.

@kevduggan
Copy link
Author

ya it doesn't work with IE11, hence using the Blob approach in that case

@kevduggan
Copy link
Author

in the meantime i am hiding the filename on the preview using css

.filepond--file-info-main{
    opacity: 0.0;
  }

@rikschennink
Copy link
Collaborator

rikschennink commented Jun 25, 2018

Just published version 1.8.1, should work now. Please confirm.

@kevduggan
Copy link
Author

works like a dream @rikschennink. Thanks a million!

@rikschennink
Copy link
Collaborator

@kevduggan Fabulous! Thanks for confirming. :-)

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

2 participants