You are not logged in.

#1 2016-03-25 16:59:52

Acosta
Member
Registered: 2016-03-25
Posts: 1

Screenfetch doesn't upload to imgur

screenfetch -su imgur

returns

Uploading your screenshot now...your screenshot can be viewed at http://imgur.com/ 

This should link to a specific image, but it's not.

So I went to /usr/bin/screenfetch and looked up where it was trying to upload the file.

baseurl='http://imgur.com'
uploadurl='http://imgur.com/upload'
ret=$(curl -sf -F file="@${shotfiles[@]}" ${uploadurl})
filehash="${ret##*hash\":\"}"
filehash="${filehash%%\"*}"
desturl="${baseurl}/${filehash}"

If you try to go there you get an error but it seems correct because I looked at the upload file source code and the URL is there.

 <form class="file_upload" method="post" id="upload-global-form" enctype="multipart/form-data" action="http://imgur.com/upload"> 

I don't understand this code very well and I'm out of ideas. Can anyone help?

Offline

Board footer

Powered by FluxBB