video uploding from ios fails. Error as video encoding failed.

100 views
Skip to first unread message

maha...@globalworldtech.com

unread,
Oct 18, 2016, 4:29:53 AM10/18/16
to Tumblr API Discussion
tried to post mp4 video from ios
 uesd following code

 let videoData  =  NSData(contentsOfURL: self.videoURL!)!

        let video = videoData.base64EncodedStringWithOptions([])


         oauthswift.client.request("http://api.tumblr.com/v2/blog/"+"\(userNameTmblr)"+".tumblr.com/post", method: .POST, parameters: ["type":"video","caption":self.captionTextBox.text!,"data": video], headers: [:], checkTokenExpiration: true, success: { response in

            print("Successs...Post video Tumblr. ....")

}

}

maha...@globalworldtech.com

unread,
Oct 18, 2016, 5:23:21 AM10/18/16
to Tumblr API Discussion
Mistake in Documentation...

Michael Ceyko

unread,
Oct 20, 2016, 5:09:41 PM10/20/16
to Tumblr API Discussion
Hello,

Were you able to figure out the issue? If you've found a mistake in the documentation, could you please let us know so we can fix it?

Thanks!
-Mike Ceyko

On Tuesday, October 18, 2016 at 5:23:21 AM UTC-4, maha...@globalworldtech.com wrote:
Mistake in Documentation...

Mahadev Khatke

unread,
Oct 21, 2016, 1:02:27 AM10/21/16
to tumbl...@googlegroups.com
I have informed to Help Desk.
to upload video to tumblr from code, Video Data parameter name Should be "data64" but in documention it is given that as "data"

--
You received this message because you are subscribed to a topic in the Google Groups "Tumblr API Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tumblr-api/IakIL_BH2sw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tumblr-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Sadjadian

unread,
Mar 2, 2018, 1:06:13 PM3/2/18
to Tumblr API Discussion
Thank you so much!!!! I've been trying to upload a damn video for days now.... your solution works perfectly!
To unsubscribe from this group and all its topics, send an email to tumblr-api+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages