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.

Loading files without transferring file contents

See original GitHub issue

Hi there,

I’m using FilePond to upload a file within in an interface for a data object. The user can then go back to edit that data object, where I would like to show them the currently uploaded file and give them the option to delete that one and upload another.

FilePond does this very well, as I can add the previously uploaded file data to the files array and use the load part of the server API to show the file’s name and size.

This is great, except it seems to require that I return the file contents in the server load request, so it appears that each time the user visits the page of a data object FilePond will download the file, which isn’t necessary.

I might be missing something obvious, but is there a way to simply add the file details (e.g. name and size) to the files array instead of performing a request for the file?

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:26

github_iconTop GitHub Comments

2reactions
rikschenninkcommented, Jun 28, 2018

Will close the issue as the core feature has been added.

I’ve added the load boolean to the roadmap.

1reaction
asartzcommented, Oct 23, 2018

Went with oremovefile and implemented the functionality i need in the event handler. Thank you for your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I read large text files line by line, without loading ...
I want to read a large file (>5GB), line by line, without loading its entire contents into memory. I cannot use readlines() since...
Read more >
Move your files to a new Windows PC using an external ...
Transfer your files to your new PC. Connect your external storage device to your new Windows 11 PC. Select File Explorer from your...
Read more >
Transfer files between your computer & Android device
Transfer files between your computer & Android device ... Upload files to your Google Account to use them on both your computer and...
Read more >
File Operations | MicroPython Basics: Load Files & Run Code
The put command can copy files from your computer to a MicroPython board. This is great for copying over Python source code and...
Read more >
Importing document metadata, files, and extracted text
Since the load file is parsed based on the delimiter set, you may need to check delimiters used in the load file if...
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