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.

Set files metadata through FilePond.create

See original GitHub issue

Hey its me again! 😄

I have another enhancement request. All files which go through my FilePond implementation have a payload which is essentially the file metadata. This metadata lives alongside the file ALWAYS and it provides some extra information which changes the way the file is displayed.

It would be really nice if I could set the metadata of the file through the instance creation with FilePond.create(...). Currently there is the files option holding an array of objects in the format:

{ "source": "server-unique-id", "options": { "type": "'limbo' | 'local' | 'input'" } }

Maybe pass something like this:

{ "source": "server-unique-id", "options": { "type": "'limbo' | 'local' | 'input'", "metadata": { "some": "object" } } }

Which would create the File and set its metadata immediately.

What do you think?

Kind regards, Denis

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
enisdenjocommented, Jun 19, 2018

I can confirm that both: setting metadata and the exposed file-info work nice.

1reaction
rikschenninkcommented, Jun 19, 2018

Just published version 1.8.0, secretly added the createView filter in file-info. Now updating docs and plugins.

{
    source: '1.png',
    options: {
        type: 'local',
        metadata: {
            'foo': 'bar'
        }
    }
}

Release info: https://twitter.com/rikschennink/status/1009036630307540993

Read more comments on GitHub >

github_iconTop Results From Across the Web

File metadata - Easy File Uploading With JavaScript | FilePond
File metadata. The File Metadata plugin makes it possible to add initial metadata to file objects without using the file item setMetadata method....
Read more >
filepond post image with metadata - javascript - Stack Overflow
If you're not going to write a custom server.process method then you're going to have to "remember" which metadata belongs to which file....
Read more >
Filepond-plugin-file-metadata NPM - npm.io
The File Metadata plugin makes it possible to add initial metadata to file objects without using the file item setMetadata method. Add metadata...
Read more >
Creating a Filepond component using Blade, Livewire ...
Install Spatie Media Library. Set up a model to associate a media collection with. Validate our file request. Add validation error text to...
Read more >
filepond-plugin-file-metadata examples - CodeSandbox
Learn how to use filepond-plugin-file-metadata by viewing and forking example apps that make use of filepond-plugin-file-metadata on CodeSandbox.
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