+ 1

How to post image on playground from phone ?

13th May 2017, 3:40 PM
Nikola Stojiljkovic
Nikola Stojiljkovic - avatar
10 Réponses
+ 12
imgbb.co, without registration you can upload whetever you want. :)
13th May 2017, 4:00 PM
Maz
Maz - avatar
+ 10
<img src = "file:///path/img.jpg" /> Replace path with your path, it works fine but i don't know if other people can see your local file. :)
13th May 2017, 3:48 PM
Maz
Maz - avatar
+ 6
@Maz i don't think other people will see it unless SL automatically upload on their server or SL can transfer file P2P
13th May 2017, 3:51 PM
Apel Mahmod
Apel Mahmod - avatar
+ 5
imgur.com, it's very popular and also you don't need registration
13th May 2017, 4:01 PM
Welliton Malta
Welliton Malta - avatar
+ 4
using its url on the src attribute. If you just have it on your phone, then you'll have to upload it somewhere to use it on code playground
13th May 2017, 3:43 PM
Welliton Malta
Welliton Malta - avatar
+ 4
Ok ok :D Thank you very much guys for help :D
13th May 2017, 4:03 PM
Nikola Stojiljkovic
Nikola Stojiljkovic - avatar
+ 4
@Maz, the file is in client side visible for single user others will not goona see the image unless they save the image in same directory and same file name and extension.
13th May 2017, 4:14 PM
Vishal Prajapati
+ 3
You can use file input function to upload your image to code playground. I have the sample below: https://code.sololearn.com/WmhU7VNzZYSI/?ref=app It's just for upload and display. If you use img tag, you got to upload it somewhere public server and link it from there. Or another option is you can have your image converts to data uri format and use img src tag to link it like: https://code.sololearn.com/Ws47SL4aLH0g/?ref=app but the data uri is quite a long list for a small image. This is useful for preload of background image, which is loaded more faster then link to image file.
13th May 2017, 3:57 PM
Calviղ
Calviղ - avatar
+ 3
For external image link, you can post your image to postimage.io
13th May 2017, 4:01 PM
Calviղ
Calviղ - avatar
+ 2
@Maz you are right ;) I post image like you said, and on my brothers phone dont appears :) Guys do you know some good sites where can I upload images? :)
13th May 2017, 3:59 PM
Nikola Stojiljkovic
Nikola Stojiljkovic - avatar