Giter Club home page Giter Club logo

Comments (7)

Gytjarek avatar Gytjarek commented on May 30, 2024

@robmarshall do you have any input on above questions?

from next-gravity-forms.

robmarshall avatar robmarshall commented on May 30, 2024

Nice one digging into this @Gytjarek

How can we ensure it is required to be installed

We can't. As we are not creating a WordPress side plugin we cannot show any notifications on the admin side.

There is a chance we would be able to check for the existance of a dedicated WpGraphQL Upload field. If there isnt one throw an error.
But tbh I am most inclined to have details of this in the Readme and leave it at that.

Tries to upload unsupported type

What happens if a user has added custom support for a file in WP. Such as SVG support, do they also have to handle this within this package?

Maybe we fall back to default WordPress types and show an error as you suggest, and allow this to be overridden by custom types. Purely file extension checking - nothing fancier otherwise it gets a bit scope creepy.

Multi-file upload

Thoughts on getting a single file upload working first? Reduce the workload, focus on initial feature and then extend to multi-file later.

from next-gravity-forms.

Gytjarek avatar Gytjarek commented on May 30, 2024

Nice one digging into this @Gytjarek

How can we ensure it is required to be installed

We can't. As we are not creating a WordPress side plugin we cannot show any notifications on the admin side.

There is a chance we would be able to check for the existance of a dedicated WpGraphQL Upload field. If there isnt one throw an error. But tbh I am most inclined to have details of this in the Readme and leave it at that.

Tries to upload unsupported type

What happens if a user has added custom support for a file in WP. Such as SVG support, do they also have to handle this within this package?

Maybe we fall back to default WordPress types and show an error as you suggest, and allow this to be overridden by custom types. Purely file extension checking - nothing fancier otherwise it gets a bit scope creepy.

Multi-file upload

Thoughts on getting a single file upload working first? Reduce the workload, focus on initial feature and then extend to multi-file later.

yes thanks for your inputs. I've implemented a single file upload already, that's why asking about Multi-file upload :)

from next-gravity-forms.

rossjcoop avatar rossjcoop commented on May 30, 2024

yes thanks for your inputs. I've implemented a single file upload already, that's why asking about Multi-file upload :)

Hi @Gytjarek, can you share how you implemented single file upload?

from next-gravity-forms.

Gytjarek avatar Gytjarek commented on May 30, 2024

yes thanks for your inputs. I've implemented a single file upload already, that's why asking about Multi-file upload :)

Hi @Gytjarek, can you share how you implemented single file upload?

Hi! Pls check it here: https://github.com/Hike-Digital/next-gravity-forms/tree/feature/fileupload, it’s a branch we’re going to merge soon

from next-gravity-forms.

rossjcoop avatar rossjcoop commented on May 30, 2024

yes thanks for your inputs. I've implemented a single file upload already, that's why asking about Multi-file upload :)

Hi @Gytjarek, can you share how you implemented single file upload?

Hi! Pls check it here: https://github.com/Hike-Digital/next-gravity-forms/tree/feature/fileupload, it’s a branch we’re going to merge soon

@Gytjarek Great! Thank you.

from next-gravity-forms.

codilechasseur avatar codilechasseur commented on May 30, 2024

@Gytjarek Is there a way to switch to the fileupload branch in your fork so I can test?

from next-gravity-forms.

Related Issues (15)

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.