File Upload on Form
AnsweredI am building a form that upon submission creates an item in a Podio App. This form allows the user to upload pictures as well as video. I am a bit lost on what URL I should have the file upload target (files.podio.com?) for use with PodioFile::upload ($file_path, $file_name);
Also, once that upload is successful how can I attach it to the item being created upon submission of the form.
-
Hi David,
if I understand you correctly, you are building the webform using php and you will manage the creation of the item after submission in your php code.
The parameters
$file_path
and$file_name
expect a path/file on your server's local filesystem, not a URL. As a result you will get afile_id
which you can use to Podio::attach the uploaded file to the item you have created earlier.Best,
Stefan -
I know this is super old. But im trying to accomplish something similiar.
Here is the podio webform: https://podio.com/webforms/23288110/1664792
Here is the webform ive built: http://adcommpodio.com/infotech/webforms/tickets/
Currently it works in posting the data and submitting it.
The only issue is getting the file upload function to carry over/submit.
How would i go about getting the file to actually upload into the item. Currently only the text data is carrying over/submitting.
Please sign in to leave a comment.
Comments
2 comments