- Issue created by @edmargomes
- Status changed to Needs work
about 1 year ago 9:47pm 4 September 2023 - 🇧🇷Brazil edmargomes
Started the process, I fixed problem with jquery once too.
Sending the first version to get more opinions
I need to create a custom form and save data on Google Storage.
<?php
$form['step3']['file'] = [
'#type' => 'flysystem_gcs_cors_file',
'#upload_location' => 'cloud-storage://2023-08',
'#upload_validators' => [
'file_validate_extensions' => ['pdf'],
],
'#title' => $this->t('File'),
'#required' => TRUE,
];
?>
But the field only works inside the entity.
Create a custom form with the field type:
'#type' => 'flysystem_gcs_cors_file',
The field needs to understand when it's not inside an entity. With that, just upload and send the link to submit the form.
Active
1.0
Code
Started the process, I fixed problem with jquery once too.
Sending the first version to get more opinions