-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
fusioncms/cms
#81Milestone
Description
Is your feature request related to a problem? Please describe.
Our resources/js/services/Form.js class is based off of Jeffrey Way's infamous Object-Oriented Forms series (see: Vue-Forms), which works great however an enhancement will be necessary in order to accept File Uploads along with the rest of your data.
The simplest approach to handling file uploads through HTML Form Requests is through the FormData object, however this will in-effect turn all other data into strings. This behavior can be resolved by collecting all non-File values and using JSON.stringify to retain their dataTypes.
Of course, our back-end will need to know how to decode these values, therefore we'll add a middleware to decode and merge in the values into the request object.
Feature request checklist
- This is a single feature (i.e. not a re-write of the entire CMS)
- The title starts with "Feature request: " and is followed by a clear feature name (Ex:
Feature request: add konami code to control panel) - I have searched for existing issues and to the best of my knowledge this is not a duplicate
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels