Jump to content
UBot Underground

Trouble with Socket Image Upload


Recommended Posts

Does anybody know what this means?

 

{"errorCode":-1019,"errorDescription":"[runtime][WARNING][JAXB] c.w.f.o.JAXBRuntimeException - Unmarshaling failed","success":false,"payload":null}

 

Thanks

Link to post
Share on other sites

The site I am having trouble with is wix.com. I can login and post data no problem. I am just getting an error from this part of my script:

 

plugin command("HTTP post.dll""http set contenttype""application/xml; charset=UTF-8")
plugin command("HTTP post.dll""http set headers""accept""application/json, text/plain, */*")
set(#post image$plugin function("HTTP post.dll""$http post""http://editor.wix.com/media/private/add""<mediaItemList><mediaItem fileName=\"{#filename}\"\\n
   originalFileName=\"{#original}\"\\n
           fileSize=\"{#filesize}\"\\n
           mimeType=\"image/jpeg\"\\n
         sourceName=\"user\"\\n
            version=\"2\"\\n
            iconURL=\"{#icon}\"\\n
          sourceURL=\"undefined\"\\n
          mediaType=\"picture\"\\n
              width=\"{#width}\"\\n
 height=\"{#height}\"\\n
 /></mediaItemList>""Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0""http://editor.wix.com/static/services/media-gallery-ng/0.116.0/assets/media_gallery/index.html?mediaGalleryStaticBaseUrl=http://static.wix.com/services/media-gallery-ng/0.116.0//"""""), "Global")

 

It does upload initially because I am able scrape those upload file variables right before this piece of code, it just won't post the information to make the image become live on the site.

Link to post
Share on other sites

You can try this but probably won't work:

plugin command("HTTP post.dll", "http container") {
    plugin command("HTTP post.dll", "http set contenttype", "application/xml; charset=UTF-8")
    plugin command("HTTP post.dll", "http set headers", "accept", "application/json, text/plain, */*")
    set(#post image, $plugin function("HTTP post.dll", "$http post", "http://editor.wix.com/media/private/add", "fileName={#filename}&originalFileName={#original}&fileSize=&{#filesize}&mimeType=image/jpeg&sourceName=user&version=2&iconURL={#icon}&sourceURL=undefined&mediaType=picture&width={#width}&height={#height}", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0", "http://editor.wix.com/static/services/media-gallery-ng/0.116.0/assets/media_gallery/index.html?mediaGalleryStaticBaseUrl=http://static.wix.com/services/media-gallery-ng/0.116.0/", "", ""), "Global")
}

You may need to url encode some of the parameter values.

 

Also when posting code put it in the code "<>" tags.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...