5
Hello, I am new to the site and I am wondering if I am doing something wrong or if this is a browser limitation. Linking images to posts seem to work fine, but this is not an option for avatar icons
I am getting strange JSON errors whenever I attempt to upload or paste images either in posts or at profile settings "Browse..."
I am not too familiar debugging/logging browsers, but here's some logs I found from both Firefox and Chromium
OS: Arch Linux 6.4.7 Browsers: Mozilla Firefox 116.0, Chromium 115.0.5790.110-1
Error attempting to upload avatar icon: Firefox
XHRPOST
https://lemmy.world/pictrs/image
[HTTP/2 403 Forbidden 22ms]
pictrs upload: client.js:2:1776534
Object { state: "failed", msg: SyntaxError }
client.js:2:1776564
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data client.js:2:1776766
handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
(Async: promise callback)
handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
n https://lemmy.world/static/fd8d452/js/client.js:2
DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property. client.js:2:509245
Chromium
client.js:2 POST https://lemmy.world/pictrs/image 403
(anonymous) @ client.js:2
x @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
u @ client.js:2
uploadImage @ client.js:2
(anonymous) @ client.js:2
p @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
e @ client.js:2
s @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2
client.js:2 pictrs upload:
client.js:2 {state: 'failed', msg: SyntaxError: Unexpected token '<', ")}
client.js:2 SyntaxError: Unexpected token '<', ")
(anonymous) @ client.js:2
Promise.then (async)
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2
client.js:2 DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.
buildToast @ client.js:2
showToast @ client.js:2
Xe @ client.js:2
(anonymous) @ client.js:2
Promise.then (async)
o.handleImageUpload @ client.js:2
(anonymous) @ client.js:2
Error attempting to upload image in post by clicking "upload image" Mozilla
XHRPOST
https://lemmy.world/pictrs/image
[HTTP/2 403 Forbidden 26ms]
pictrs upload: client.js:2:1731897
Object { state: "failed", msg: SyntaxError }
client.js:2:1731927
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data client.js:2:1732538
e https://lemmy.world/static/fd8d452/js/client.js:2
p https://lemmy.world/static/fd8d452/js/client.js:2
C https://lemmy.world/static/fd8d452/js/client.js:2
w https://lemmy.world/static/fd8d452/js/client.js:2
e https://lemmy.world/static/fd8d452/js/client.js:2
s https://lemmy.world/static/fd8d452/js/client.js:2
(Async: promise callback)
e https://lemmy.world/static/fd8d452/js/client.js:2
s https://lemmy.world/static/fd8d452/js/client.js:2
t https://lemmy.world/static/fd8d452/js/client.js:2
t https://lemmy.world/static/fd8d452/js/client.js:2
uploadSingleImage https://lemmy.world/static/fd8d452/js/client.js:2
e https://lemmy.world/static/fd8d452/js/client.js:2
p https://lemmy.world/static/fd8d452/js/client.js:2
C https://lemmy.world/static/fd8d452/js/client.js:2
w https://lemmy.world/static/fd8d452/js/client.js:2
e https://lemmy.world/static/fd8d452/js/client.js:2
s https://lemmy.world/static/fd8d452/js/client.js:2
t https://lemmy.world/static/fd8d452/js/client.js:2
t https://lemmy.world/static/fd8d452/js/client.js:2
e https://lemmy.world/static/fd8d452/js/client.js:2
e https://lemmy.world/static/fd8d452/js/client.js:2
p https://lemmy.world/static/fd8d452/js/client.js:2
C https://lemmy.world/static/fd8d452/js/client.js:2
w https://lemmy.world/static/fd8d452/js/client.js:2
e https://lemmy.world/static/fd8d452/js/client.js:2
s https://lemmy.world/static/fd8d452/js/client.js:2
t https://lemmy.world/static/fd8d452/js/client.js:2
t https://lemmy.world/static/fd8d452/js/client.js:2
uploadImages https://lemmy.world/static/fd8d452/js/client.js:2
handleImageUpload https://lemmy.world/static/fd8d452/js/client.js:2
n https://lemmy.world/static/fd8d452/js/client.js:2
DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property. client.js:2:509245
Chromium
client.js:2 POST https://lemmy.world/pictrs/image 403
(anonymous) @ client.js:2
x @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
u @ client.js:2
uploadImage @ client.js:2
(anonymous) @ client.js:2
p @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
e @ client.js:2
s @ client.js:2
(anonymous) @ client.js:2
(anonymous) @ client.js:2
Np @ client.js:2
(anonymous) @ client.js:2
client.js:2 pictrs upload:
client.js:2 {state: 'failed', msg: SyntaxError: Unexpected token '<', ")}
client.js:2 SyntaxError: Unexpected token '<', ")
(anonymous) @ client.js:2
Promise.then (async)
Np @ client.js:2
(anonymous) @ client.js:2
client.js:2 DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.
buildToast @ client.js:2
showToast @ client.js:2
Xe @ client.js:2
(anonymous) @ client.js:2
Promise.then (async)
Np @ client.js:2
(anonymous) @ client.js:2
Picture uploads are currently disabled since there was a recent attack of some A-holes uploading tons of illegal content. It is not a technical issue, and it is not permanent, but we will still have to wait a bit before the admins can safely enable picture uploads again.
You can still link pictures hosted on other sites, but not directly upload anything to lemmy.world ATM (banners, avatars etc.)
Gotcha, so I am unable to change profile picture for the time being. If uploading is blocked for long period, I hope they at least allow linking avatar pictures