Developer forum

Forum » Rapido » Connect uploaded files to a user

Connect uploaded files to a user

Gerard Kocks
Gerard Kocks
Reply

Hi,

On our ISTwente solution (which is an international school) we have a huge form in which a user needs to upload more documents.
The form can be reached via https://istwente.azurewebsites.net/istwente/admissions/how-to-apply/application-form.

At this moment all uploaded files end in Files/system/formuploads/Application Form. But what our customer would like to have is:

- An E-mail to an ISTwente employee with those files attached (or a link to those files)

- Put the documents in usermanagement connected to the user

- Put the file somewhere in file management so that they can see easily to which user they belong

As you can see in the attachement it is hard to manage it in the way I set it now (but perhaps I did it wrong ;-) )
Can someone advise me about this?

Best regards
Gerard

bestanden_formulier.png

Replies

 
Nicolai Pedersen
Reply

Hi Gerard

Sorry, that is not possible without some kind of customisation - it should be simple enough, but requires code. The mail to the website owner should contain the link to the uploaded files though. And again, you should not keep passport copies in the filemanager...

BR Nicolai

 
Gerard Kocks
Gerard Kocks
Reply

Hi Nicolai,

Thanks for you reply. I will discuss with Innovadis how we can realize it. 
Is it possible to make a feature request of it?
I think more (potential) customers would like to use it, if you allow them to upload a file I think it would be logical to match the doc to the user.

The form is still in concept and the site not live. I will change the form and leave the Passport copy out of it.
Thanks for noticing!

Best regards
Gerard

 
Nicolai Pedersen
Reply

Hi Gerard

Yes, you can make a feature request, but it seems like a limited use case - have not heard about this before.

If you need to register lots of information on a user, then forms module is might the wrong tool. Users can also have custom fields, and support uploads etc, so you might want a process where they signup using create accpount, and then some edit user pages where they can add stuff as they go along. Then they also do not have to fill out the entire form if they miss a piece of information.

NP

 
Gerard Kocks
Gerard Kocks
Reply

Hi Nicolai,

Thanks for your answer, I will discuss it with colleagues and Innovadis in order to find the best solution.

Best regards
Gerard

 
Peter Leleulya
Reply

First of all, I personally think you should never ask for passport copies on a website and you should never save it on disk at all, but ok ...

 

I read somewhere on the forum that adding a hidden field "FormUploadPath" you could set the upload path for the form being filled.

I added a hidden field <input type="hidden" name="FormUploadPath" value="System/FormUploads/@DateTime.Now.Ticks"> to the form template (at the bottom), hoping unguessable directories would appear with my form post ... and they do!

When I go to the forms for editors Form and then to its Form data and open my submit, then I see path values to my images that I selected, which do contain the ticks value.

The mail template set for the form doesn't match the form template, so I thik this is under construction or in test or something ...

But I think what you want is doable Gerard ... all the information needed is available to be able to link to the uploaded images.
With the ticks value in the file path you cant guess a file anymore ...

Nevertheless, passports copies saved to disk .... think of identity theft risk and s on ...

 

 

 





 

TicksFilePath.PNG
 
Nicolai Pedersen
Reply

Totally agree on not doing this.

If you send this receipt to someone, and they click the link to the passport, your browser and your addons will report that link to Google, Facebook and god knows who and it *WILL* be indexed very fast... Also it is definitely against the GDPR regulations to store such information in such a way.

BR Nicolai

 

You must be logged in to post in the forum