GithubHelp home page GithubHelp logo

Comments (5)

danharrin avatar danharrin commented on June 8, 2024 1

Filepond needs a path to the permanent storage. TemporaryUploadeFile objects are only supported when Filepond initiates that upload process originally. I would store it permanently if I were you, and introduce a cleanup process for unused files.

from filament.

mansoorkhan96 avatar mansoorkhan96 commented on June 8, 2024

Maybe there should be a way to pass an absolute path to a method which programatically uploads the file?

from filament.

mansoorkhan96 avatar mansoorkhan96 commented on June 8, 2024

Or maybe its not possible?

When the file is uploaded from browser, FilePond shows the preview from browser by adding it to its canvas. But when the file is uploaded from backend, filepond cannot show the preview unless its a public file or unless it gets temporary url for the private file (if the temp url support for local disk is added on user land)

from filament.

mansoorkhan96 avatar mansoorkhan96 commented on June 8, 2024

Filepond needs a path to the permanent storage. TemporaryUploadeFile objects are only supported when Filepond initiates that upload process originally. I would store it permanently if I were you, and introduce a cleanup process for unused files.

Thanks for the response. Actually I am building this for plugin idea, So i am trying to keep less code on user land.

If thats the way to do it: Suppose, if the file was stored to posts/featured_img/ and if the form was never submitted, How would it know if there are files that need to be cleaned up.

from filament.

danharrin avatar danharrin commented on June 8, 2024

You would not have any records in the database that reference the file

from filament.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.