question

premierchoicecomponents avatar image
0 Likes"
premierchoicecomponents asked

File Exchange programmatic upload will not work.

Ebay instructions state: To upload your files programmatically, you must send an HTTP POST request to https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload. This request will enable you to upload your files. Can anyone help be understand why my code will not work? This code is being run an MS Access procedure: strFileName = "" strPostURL = " https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload" strToken = "" strPostString = "POST /path/to/upload/script HTTP/1.0 " strPostString = strPostString & "Connection: Keep-Alive " strPostString = strPostString & "User-Agent: My Client App v1.0 " strPostString = strPostString & "Host: https://bulksell.ebay.com/ws/eBayISAPI.dll?FileExchangeUpload " strPostString = strPostString & "Content-type: multipart/form-data; " strPostString = strPostString & "boundary = THIS_STRING_SEPARATES " strPostString = strPostString & "Content-Length: 256 " strPostString = strPostString & "--THIS_STRING_SEPARATES " strPostString = strPostString & "Content-Disposition: form-data; name='token' " strPostString = strPostString & strToken strPostString = strPostString & "--THIS_STRING_SEPARATES " strPostString = strPostString & "Content-Disostion: form-data; name='file'; " strPostString = strPostString & "FileName = '" & strFileName & "' " strPostString = strPostString & "Content-Type: text/csv " strPostString = strPostString & "contents of listing.csv .. " strPostString = strPostString & " --THIS_STRING-SEPARATES- " objRequest.Open "POST", strPostURL, False objRequest.Send strPostString strPostResponse = objRequest.ResponseText Debug.Print strPostResponse
file exchangeupload
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
premierchoicecomponents avatar image
0 Likes"
premierchoicecomponents answered
Does anyone know whether the Programmatic upload feature of file exchange still works? Its described on page 65 of the Advanced File Exchange user manual, but Ebay doesn't offer any support. I keep getting a message that says my token is invalid, although I know it is correct. Can anyone please help?
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.