+ 1
How to post image on playground from phone ?
10 Respostas
+ 12
imgbb.co, without registration you can upload whetever you want. :)
+ 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. :)
+ 6
@Maz i don't think other people will see it unless SL automatically upload on their server or SL can transfer file P2P
+ 5
imgur.com, it's very popular and also you don't need registration
+ 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
+ 4
Ok ok :D
Thank you very much guys for help :D
+ 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.
+ 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.
+ 3
For external image link, you can post your image to postimage.io
+ 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? :)