Image size & uploads

Technical Support

Suggested Topics


  • 0 Votes
    24 Posts
    2k Views

    @baris Using the below site, reminding me of just how powerful Chrome Developers tools are, I was able to Copy As Curl the specific PUT command.

    Curl Convert

    Then using the same command and just changing the CID, I confirmed the same command works for all of them.

    This is what ended up working, it includes all the recorded headers, of which some will be removed as not necessary:

    curl 'http://pubdump.unfufadoo.net:4567/api/v3/categories/80' \ -X 'PUT' \ -H 'Connection: keep-alive' \ -H 'Accept: */*' \ -H 'DNT: 1' \ -H 'x-csrf-token: H5FMJEaY-CthHWM_2Unzf7DtoPeryGq_JejE' \ -H 'X-Requested-With: XMLHttpRequest' \ -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36' \ -H 'Content-Type: application/json; charset=UTF-8' \ -H 'Origin: http://pubdump.unfufadoo.net:4567' \ -H 'Referer: http://pubdump.unfufadoo.net:4567/admin/manage/categories/80' \ -H 'Accept-Language: en-US,en;q=0.9,zh;q=0.8,zh-CN;q=0.7,zh-TW;q=0.6,ja;q=0.5,ko;q=0.4,th;q=0.3' \ -H 'Cookie: _csrf=27ygKMdG0c0EyiVsJKAkKpId; express.sid=s%3AdODaXfUpLz7NTFsijWLq0d2rPUhH1Ki4.qkyxWOaxlBy%2BLDRpTYbhWS9QkD9IJE%2FRTN1vIhp7yV4' \ -H 'sec-gpc: 1' \ --data '{"backgroundImage":"/assets/uploads/category/category-84.jpg"}' \ --compressed \ --insecure

    Then using the cURL convert site, was able to save as javascript and modify to our needs so that we could loop through all categories.

    Jeff

  • 0 Votes
    1 Posts
    150 Views

    When I enable the setting Make uploaded files private I expect profile images to go private as well, but it does not. I've tried to reupload avatars to check if the setting would apply to new uploads only, but there's no difference.

    How do I make profile images accessibly to logged in users only?

  • Odd Image Rotation

    Technical Support
    5
    0 Votes
    5 Posts
    2k Views

    Ahhhhhhhh VERY interesting. Thanks so much for the info there - thought i was losing my mind for a moment.

  • Unable To Upload Avatars

    Technical Support
    3
    0 Votes
    3 Posts
    1k Views

    @rbeer That did the trick, thanks a bunch!

  • 0 Votes
    5 Posts
    2k Views

    Might be a separate issue then, unfortunately I'm not familiar with those plugins.