如何取回附件和保存通過表單後與Mailgun的POST檢索Mailgun表單提交PHP
發給我的附件下面的一些參數
attachment-1
{:filename=>"crabby.gif", :type=>"image/gif", :name=>"attachment-1", :tempfile=>#<Tempfile:/tmp/RackMultipart20140707-2-slsrkh>, :head=>"Content-Disposition: form-data; name=\"attachment-1\"; filename=\"crabby.gif\"\r\nContent-Type: image/gif\r\nContent-Length: 2785\r\n"}
attachment-2
{:filename=>"attached_файл.txt", :type=>"text/plain", :name=>"attachment-2", :tempfile=>#<Tempfile:/tmp/RackMultipart20140707-2-sudxuf>, :head=>"Content-Disposition: form-data; name=\"attachment-2\"; filename=\"attached_файл.txt\"\r\nContent-Type: text/plain\r\nContent-Length: 32\r\n"}
Content-Type
multipart/mixed; boundary="------------020601070403020003080006"
非常感謝每下載附件。這個工作。:-) –
能你稍微澄清一下,也許有一些示例代碼。我的問題 – ratherBeKiting
引用了mailgun文檔,https://documentation.mailgun.com/quickstart-receiving.html#supported-actions-for-routes –