Where is the asset with FileUploads & standalone javascript library #497
Replies: 2 comments
-
Asset Management
If you haven't selected the If you haven't checked the checkbox, the workflow stays the same, but the files will be attached to the emails (configured in workflow channels) only (no pimcore asset will be generated). LibrariesNo, there has to be a build process in some way (webpack/encore/gulp). Even with alpine.js, this wouldn't change. However, that's why we decided to decouple the JS extensions from the core repo: to allow users to write their own custom FE implementation. |
Beta Was this translation helpful? Give feedback.
-
I have multiple questions, so i hope it is okay to write them in one discussion.
1
On the doc site for FileUpload, it qoutes "Different storage principals: Store data as pimcore assets (/formdata asset folder) and add download-link to mail or add them as native mail attachments"
Does that mean files are not storred to
formdata
if no mail is sended?I have a working form with file upload and the file ist storred under
var/tmp/form-builder-files
. But no asset is created unter asset folderformdata
.Am i missing some configuration? I mean i could use the
FormEvents::POST_SUBMIT
event to do it manually, but is that the way to go? If yes, more docs for this would maybe be helpful.2
For forms that require javascript (in my case file uploads), i can choose from a javascript package or an jquery package. But both is only installable via npm (refering to Javascript Plugins).
Is there no way of providing standalone javascript without the need of npm? Would be that be the
Alpine.js
with the TODO section the solution for that?Because in the current way the formbuilder seems not compatible with raw Pimcore projects, that only uses Twig right?
Beta Was this translation helpful? Give feedback.
All reactions