Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have a file field in an input form?

I need to be able to automatically upload a file plus some related data to my Yesod server. I thought the best way to do it was using input-forms.

However, input forms don't seem to allow file fields.

  1. Am I correct or is there a way to use fileAFormReq inside an input form?
  2. If there is no such way then What will be the best strategy to follow (a.k.a. how to allow the server to accept files that are being sent by a script from a different machine, while having no real need to display a form at any point)?

Thanks,

like image 657
Uri Barenholz Avatar asked Nov 13 '22 05:11

Uri Barenholz


1 Answers

Do you know about lookupFile?

(see What is the IForm equivalent to fileAFormOpt?)

like image 73
Anonymous Avatar answered Dec 09 '22 11:12

Anonymous