+ 7
How to upload photo from my phone to the codeplayground?
I'm having trouble having my own background from my phone. Anyone knows?
4 ответов
+ 3
https://code.sololearn.com/WmhU7VNzZYSI/?ref=app
+ 3
You can do that this way (which was the way I did mine).
Go to your phone's default browser;
Load a Web page;
Save/download it (the Web page);
Go to the directory (folder) where the web page is saved;
Open the saved page again in the default browser;
Now copy the link you see in the address bar after it has been loaded from your local storage;
Paste and use the link as your image url in CSS;
Edit it according to the name of the directory in which your image is stored;
(!--For example, my phone's storage directory's address is "file:///accounts/1000/shared/downloads/Examination_Slip.htm", therefore I'd edit it to this --> " file:///accounts/1000/shared/images/Image.png"--)
After that, run it in the Code Playground. And---EUREKA!
You did it! :)
I hope this works on your device. ;)
Note: Image will be visible to only you and will not be to other visitors of your code. Why? Hope you didn't ask "Why?" *smiles* Of course. It's because your local storage is not hosted on a Web server to give access to other users. :)
+ 1
Hi, guys. Check out my new code:
https://code.sololearn.com/WMZSbQN4K3Kq/?ref=app :)