Cookbook /
PasteImgUpload-Talk
Summary: Talk page for PasteImgUpload.
Maintainer: LSMeng
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Updates for pmtoken compatibility
In case anyone else has an issue with PasteImgUpload failing after upgrading to PMWiki 2.3.23+
- In pasteimageupload.php -
- On line 17 add:
pmtoken(); $sessiontoken = $_SESSION['pmtoken'];
- On line 25 add:
PasteImgUploadSessionTokenValue = '$sessiontoken';
- On line 17 add:
- In pasteimageupload.js -
- On line 19 add:
var _PasteImgUploadSessionTokenValue = PasteImgUploadSessionTokenValue;
- On line 46 add:
formData.append('pmtoken', _PasteImgUploadSessionTokenValue);
- On line 19 add:
- Make sure your upload folders are chmodded 777
AdamW? December 30, 2023, at 11:31 PM
Talk page for the PasteImgUpload recipe (users?).