jasoncheng / dica

This is a very simple Friendica android client, wrote by Android Kotlin
GNU General Public License v3.0
14 stars 2 forks source link

[feature request] More pictures upload #83

Closed ghost closed 5 years ago

ghost commented 5 years ago

It would be nice if more than one picture can be uploaded when creating a new post.

jasoncheng commented 5 years ago

It should be few hours job on Android develop, but API support multiple IDs ?

2018-12-12 12 50 02
ghost commented 5 years ago

I do not know that. Through the web interface, the images must first be uploaded to the server and then they will paste, maybe that's a problem in the app

jasoncheng commented 5 years ago

i also want can upload movie for you @copiis

2018-12-12 12 55 40
ghost commented 5 years ago

thet would be GREAT

jasoncheng commented 5 years ago

Yes, API not support yet; But actually i can to the tricky way; upload and use bbcode [img] to attach, should i do that?

ghost commented 5 years ago

you have a GO from me! Let's see what the post looks like when it is shared.

jasoncheng commented 5 years ago

okay, after tomorrow, let's do this! maybe use [img] is a best solution instead of empty attachments

ghost commented 5 years ago

Hmm, would it be possible to first upload the pictures in a row and then publish the post with the two pictures?

jasoncheng commented 5 years ago

you mean publish two status at same time?

  1. first photo status
  2. a status with photos
ghost commented 5 years ago

No, first upload the photos in the background in a row and then publish the status with the two or three photos in one post.

jasoncheng commented 5 years ago

got it 👍

jasoncheng commented 5 years ago

status update: @copiis

after research media/upload API, it's doesn't return image URL for later use;

{"media_id":542219,"media_id_string":"542219","size":257439,"image":{"w":2400,"h":2400,"image_type":"image\/jpeg"}}

So i cannot append URL on status text, isn't possible for now; Should looking another solution, may upload to user album, use friendica/photo/update(create)

jasoncheng commented 5 years ago

status update: fail: after digging API source code, i cannot generate url even i have photo id no way to do on current API stage

system::createGUID(32, false) $photo_hash = Photo::newResource() /photo/{$photo_hash}-{$smallest}

:{

jasoncheng commented 5 years ago

okay, i decide do something on it @copiis https://github.com/friendica/friendica/issues/6272