简体   繁体   English

使用PHP-Hubspot API上传Hubspot文件

[英]Hubspot File Uploading using PHP-Hubspot API

I have been using Hubspot for my client for Inbound Marketing and Email Campaigns. 我一直在为客户使用Hubspot进行入站营销和电子邮件活动。 I have managed forms,email templates,workflows etc in hubspot using its PHP api. 我已经使用它的PHP API在hubspot中管理表单,电子邮件模板,工作流程等。 Now I am in need to upload a file using Hubspot. 现在,我需要使用Hubspot上传文件。

Currently I'm following the method mentioned here(following PHP example) 目前,我正在遵循此处提到的方法(以下PHP示例)

http://developers.hubspot.com/docs/methods/forms/submit_form http://developers.hubspot.com/docs/methods/forms/submit_form

I would like to have a file upload button along with other fields. 我想要一个文件上传按钮以及其他字段。 While searching for a solution, i saw this: 在寻找解决方案时,我看到了:

http://help.hubspot.com/articles/KCS_Article/Can-I-add-a-File-Upload-field-to-my-forms http://help.hubspot.com/articles/KCS_Article/Can-I-add-a-File-Upload-field-to-my-forms

Following the step described there, i was able to add a file upload button, but when i checked the submissions, no upload details are there. 按照此处描述的步骤,我可以添加文件上传按钮,但是当我检查提交内容时,没有任何上传详细信息。

Can any one guide me how to implement this in a PHP / javascript environment. 谁能指导我如何在PHP / javascript环境中实现这一点。

Perhaps your uploads have been successful but you're not looking in the right place for them? 也许您的上传成功了,但是您找不到合适的位置了吗? Form uploads on Hubspot are stored with the contact and not with the submission entries. Hubspot上的表单上载与联系人一起存储,而不与提交条目一起存储。 You can follow these instructions to find them: 您可以按照以下说明进行查找:

  1. Navigate to Contacts > Contacts Home 导航到联系人>联系人主页
  2. Search for the name of the contact whose file you want to retrieve > click the name to open the contact record 搜索要检索其文件的联系人的姓名>单击姓名以打开联系人记录
  3. Click Properties on the left-hand side of the page 点击页面左侧的属性
  4. Locate the appropriate file upload property 找到适当的文件上传属性
  5. Click the button next to the property (looks like a box with an arrow in it) > your file will open 单击属性旁边的按钮(看起来像一个带有箭头的框)>文件将打开

Instructions from: http://help.hubspot.com/articles/KCS_Article/Contacts/How-do-I-find-the-file-that-my-contact-uploaded-with-a-form-submission 来自以下网站的说明: http : //help.hubspot.com/articles/KCS_Article/Contacts/How-do-I-find-the-file-that-my-contact-uploaded-with-a-form-submission

If I am mistaken, then perhaps you can post your form's HTML code? 如果我弄错了,那么也许您可以发布表单的HTML代码?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM