Is there a way to prefill an uploaded file to another form in cognito forms? - amazon-cognito

I have multiple forms
and I wanted the first form to be where public users can upload a file.
However when I pull the data to another form I also want their uploaded file to be pulled by the next form. how do I do that?

Related

how to fetch document in file upload while editing

I have a form in which I am adding Profile data along with some documents uploaded, but currently it is not handled when I edit that Profile form, when I edit any Profile I am not fetching the uploaded document from data base can any one tell me how can I achieve this.

PDFBox using to creating pdf's in HTML form

i've got another question about the PDFBox. Is it possible to creating new pdf's templates on our webpage and saving it?
Well something like - I want to create PDF document with specific fields as administrator on web page. I have fields which I want to fill by my restrictions and when I saving it i want to "LOCK" fields which i filled.
I hope it's clear.

Sensenet upload files to a document library - fields fill

It is possible in the moment of upload a content to a document library show the fields defined (of the document library)? At the moment, the only way that the user have to fill the fields is uploading the document first and then click edit to fill the fields.
Unfortunately there is no out-of-the box solution for this scenario. I agree that this would be useful, but currently you have to create a custom solution.
You will have to create a UI that displays the upload control (you can use the built-in Sense/Net plugin) and also the form fields. In the click event of a button, you have to first start and finish the upload, retrieve the new content id and than update the metadata fields - all this in JavaScript. This way users would not see the difference, for them this would be a single operation.
(in mid-term we plan to offer a built-in control that will make this possible, but we do not have a timeline for this feature)

Moodle PHP filehandeling

My problem is that we have made an block that opens a page witha a mform on it. And we use the editor element to start the tinyMCE editor, on the page. But when we save the output, the images oploaded to the text field is only viewable to the admin (the person who uploaded it) and in the mdl_files it sets it to be a draft file. I have been through the documentation, and i might have lost the context on the new page, but im not sure.
In Moodle, files uploaded to a form (either to a filemanager element or a text editor) are stored in a temporary 'draft' area while the form is being edited.
This is so that the actual files are not changed until the form is submitted (e.g. if an admin changed the image embedded in some text, deleting the original, you do not want anyone viewing the page during the editing to see a broken image link).
When working with files embedded in a text editor in Moodle, you need to make sure you copy all existing files into the 'draft' area before you show the form, then copy the 'draft' images into the real area, after the form is submitted.
See https://docs.moodle.org/dev/Using_the_File_API_in_Moodle_forms#editor for details about how to do this.
Please also note that your plugin will also need a PLUGINTYPE_PLUGINNAME_pluginfile() function in its lib.php, in order to authenticate any file requests from the user's browser and return the file contents. See any of the core activities for examples of this (e.g. mod/data/lib.php - function data_pluginfile()).

ZF2 - How to Save Uploaded File when Form is not Valid on Submit

I have a form in ZF2 where, for example, a text box and a file input box are included. What about when the form is not valid because the text box, for example, is required and user leave it blank, how can I save on the form the previously uploaded file so that it will not be uploaded again and again when the form is invalid?
Regards,
Eli
As of ZF2.1 (I think), there is support for this via the post-redirect-get plugin. The relevant documentation is here:
http://zf2.readthedocs.org/en/latest/modules/zend.form.file-upload.html#file-post-redirect-get-plugin
When you cannot separate the forms, the File Post-Redirect-Get
Controller Plugin can be used to manage the file inputs and save off
valid uploads until the entire form is valid.
You could use Validation groups to validate the none-file fields separately from the file input fields:
http://framework.zend.com/manual/2.0/en/modules/zend.form.quick-start.html#validation-groups