You are viewing a single comment's thread from:

RE: Write a Steemit Web App: Part 11 - Posting Content

in #steemdev7 years ago

I'm having a bit of trouble posting an image.... I was finally able to get a seeminly acceptable JSON response when posting content with an image... I am able to successfully post content, but no image appears. Can you tell me what I am doing wrong:

Posting Code:
this.submit = function() {
var tester3 = "";
var tester2 = 'test-title';
var jsontext = '["image",""]';
var tagger = JSON.parse(jsontext);

  var permlink = 're-' + tester2 + '-' + Math.floor(Date.now() / 1000);
  steemconnect.comment(tester3, tester2, $scope.username, permlink, '', $scope.comment, tagger, function(err, result) {
    console.log(err, result);
    $scope.comment = '';
    $scope.$apply();
    self.loadComments();
  });
};

JSON Response:

{result: {…}}
result
:
block_num
:
14973208
expiration
:
"2017-08-28T15:15:21"
expired
:
false
extensions
:
[]
id
:
"9a31ab72972752636f296e8749dd654893832934"
operations
:
Array(1)
0
:
Array(2)
0
:
"comment"
1
:
author
:
"mytest-account123"
body
:
"test"
json_metadata
:
"["image",""]"
parent_author
:
""
parent_permlink
:
"test-periscope"
permlink
:
"re-test-periscope-1503933261"
title
:
""
proto
:
Object
length
:
2
proto
:
Array(0)
length
:
1
proto
:
Array(0)
ref_block_num
:
30996
ref_block_prefix
:
3937866285
signatures
:
["1f7ba833192e1894814fb6d87d2ba478ef71d0eddd4a70d3cc…19e61602294408561746ee65eb44462f232745690c4e71d84"]
trx_num
:
5
proto
:
Object
proto
:
Object

Sort:  

@danSanchez I alsofacing same Problem, Would you help me to solve this?????????

Coin Marketplace

STEEM 0.18
TRX 0.14
JST 0.030
BTC 59961.00
ETH 3199.92
USDT 1.00
SBD 2.46