{"id":393,"date":"2023-10-21T00:30:41","date_gmt":"2023-10-20T18:30:41","guid":{"rendered":"https:\/\/bernd32.xyz\/blog\/?p=393"},"modified":"2024-11-08T23:28:18","modified_gmt":"2024-11-08T17:28:18","slug":"how-to-upload-an-image-file-to-0x0-st-from-dolphin-file-manager","status":"publish","type":"post","link":"https:\/\/bernd32.xyz\/blog\/?p=393","title":{"rendered":"How to upload a file directly from Dolphin file manager"},"content":{"rendered":"<h3>How to upload an image file to 0x0.st file hosting:<\/h3>\n<p>Just create <span>0x0upload.desktop file with the following content:<\/span><\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code><span>[Desktop Entry] \r\nType=Service \r\nMimeType=image\/*; \r\nActions=UploadTo0x0st; \r\nX-KDE-Priority=TopLevel \r\nX-KDE-StartupNotify=false \r\n\r\n[Desktop Action UploadTo0x0st] \r\nIcon=cloud-upload \r\nName=Upload to 0x0.st \r\nExec=konsole -e bash -c \"curl -F'file=@%u' http:\/\/0x0.st; read -p 'Press Enter to close'\"<\/span><\/code><\/pre>\n<\/div>\n<p><span><br \/>\nSave the file in<\/span> <span>\/usr\/share\/kio\/servicemenus, restart Dolphin (killall dolphin) and it&#8217;s done. <\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232315.png\" alt=\"\" width=\"1024\" height=\"1016\" class=\"alignleft size-full wp-image-394\" srcset=\"https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232315.png 1024w, https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232315-300x298.png 300w, https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232315-150x150.png 150w, https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232315-768x762.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Result:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232720.png\" alt=\"\" width=\"606\" height=\"331\" class=\"alignleft size-full wp-image-395\" srcset=\"https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232720.png 606w, https:\/\/bernd32.xyz\/blog\/wp-content\/uploads\/Screenshot_20231020_232720-300x164.png 300w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/p>\n<h3>How to upload a file to remote server via scp:<\/h3>\n<p>Create a desktop file:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>[Desktop Entry]\r\nType=Service\r\nMimeType=all\/allfiles;\r\nActions=UploadToVPS;\r\nX-KDE-Priority=TopLevel\r\nX-KDE-StartupNotify=true\r\n\r\n[Desktop Action UploadToVPS]\r\nIcon=cloud-upload\r\nName=Upload to VPS\r\nExec=konsole -e bash -c \"scp -P &lt;port&gt; -i \/home\/user\/.ssh\/id_rsa '%u' user@&lt;server-ip&gt;:\/home\/user\/\r\nUploads &amp;&amp; echo 'File %u was uploaded to \/home\/user\/Uploads' || echo 'Upload failed'; read -p 'Pre\r\nss Enter to close';\"<\/code><\/pre>\n<\/div>\n<p><span><\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to upload an image file to 0x0.st file hosting: Just create 0x0upload.desktop file with the following content: [Desktop Entry] Type=Service MimeType=image\/*; Actions=UploadTo0x0st; X-KDE-Priority=TopLevel X-KDE-StartupNotify=false&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7,15],"class_list":["post-393","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-guide","tag-linux"],"_links":{"self":[{"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=393"}],"version-history":[{"count":4,"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/393\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=\/wp\/v2\/posts\/393\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bernd32.xyz\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}