Comments (7)
@robmarshall do you have any input on above questions?
from next-gravity-forms.
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.
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.
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.
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.
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.
@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)
- Wrong register api usage for maxLength HOT 1
- Drop React 17 Support HOT 2
- MaxLength Issue - Conditional HOT 3
- Add dev instructions to ReadMe
- Add HotReload/Dev build script
- Strings translation support HOT 2
- Multiselect - select2 support HOT 6
- Incorrect Label ID for Hidden Field & Checkbox
- Update form elements to follow GF base HTML
- Custom error message isn't rendered for the fields
- Range is not working for number field HOT 1
- It is possible to submit form without completing the CAPTCHA HOT 2
- Expose "setField" from React Hook Forms to allow dynamic injection HOT 6
- Exclude third party packages when not used
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from next-gravity-forms.