Re: DragDropMultiUpload recipe does not work with Chromium, author name
Johan Bengtsson <[email protected]>
| Newsgroups | gmane.comp.web.wiki.pmwiki.user |
|---|---|
| Message-ID | <GVYP280MB0366135C58541A453644A520CED4A@GVYP280MB0366.SWEP280.PROD.OUTLOOK.COM> |
It seems to work as expected now. I had to clear cache & cookies in Chromium for the drop-zone to become visible. Thank you! /Johan Bengtsson ________________________________________ From: Petko Yotov <[email protected]> Sent: Thursday, October 19, 2023 11:49 To: Johan Bengtsson Cc: PmWiki Users Subject: Re: [pmwiki-users] DragDropMultiUpload recipe does not work with Chromium, author name Thanks for reporting. I have released a new version that should work with $EnablePostAuthorRequired. You can get it from the cookbook page: https://www.pmwiki.org/wiki/Cookbook/DragDropMultiUpload If you have $EnablePostAuthorRequired, an author name is required to upload, unless you set $EnableUploadAuthorRequired to zero. So the new DDMU version will send an author name if either: 1. The user has already edited and populated the "author" field (the $Author variable known to PmWiki). 2. There is an "author" input field in the page that is populated. I have tested this with Firefox 119 and Chromium 118. If you don't require an author name for uploads, just set in config.php: $EnableUploadAuthorRequired = 0; All files from ddmu.zip need to be updated, including in the cookbook/ and pub/ddmu directories. If you had errors about Token invalid or missing, it is possible some of the ddmu files were older versions. Petko -- If you upgrade : https://www.pmwiki.org/Upgrades On 19/10/2023 10:32, Johan Bengtsson wrote: > Hi, > > I have some problems with pmwiki & ddmu. I noticed ddmu was not > working, probably since upgrading to 2.3.23. > Symptoms: insert image code link would turn red after uploading, some > error message about "Token....". > > > I upgraded to the latest ddmu. Then the dropzone window would not > appear, it would not work at all. > Conventional file upload works. > When testing I used Chromium on Linux. > > When I switched to Firefox everything worked as expected...maybe. It > seems it only works to upload files if the page has already been saved > with an author name specified, or if an author name is suggested by > the browser. > Otherwise the insert code link will turn red. > > So there seems to be a problem with Chromium (in my case version > 117.0.5938.149), and maybe author names. > > Best regards, > Johan Bengtsson > _______________________________________________ > pmwiki-users mailing list > [email protected] > http://www.pmichaud.com/mailman/listinfo/pmwiki-users