It's been a while since I want a way to add file upload system when creating a payment method.
In a custom module , I created a new method of payment. When declaring my fields in the file "system.xml" I'll wish to add an input to upload a PDF. Here is part of my code :
<bvr translate="label" module="paygate">
.......
....
<fields>
<bvrfile translate="label">
<label>BVR file</label>
<frontend_type>file</frontend_type>
<sort_order>2</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>0</show_in_store>
</bvrfile>
</fields>
.......
....
</bvr>
Here is a screenshot of my admin panel:
Do you know if it is possible to add this type of field and how I can retrieve the file's URL upload?