Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
File/media upload "Failed"
Avatar
escapingUser #1
Member since Aug 2018 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: File/media upload "Failed"
I currently run 2 locally hosted wikis, both on IIS. One of which is configured with single sign on for the domain.

Uploading images to the non-SSO wiki works just fine. I have no issues there.

However the one configured with SSO gives me no end of trouble. Sometimes image uploading works, sometimes it doesn't. Searching all the threads of people who have similar issues hasn't helped, my max upload size is fine. The files are small anyways.

My ACL is very liberal, anyone should be able to upload.

I don't even know where to look at this point.

I tried just manually adding the images to the media folder on the computer that's hosting the site but that was no good either. Dokuwiki complained and wouldn't recognise them.
[Image: https://i.imgur.com/XGvxlAt.jpg]
Avatar
pop (Moderator) #2
Member since Nov 2016 · 216 posts · Location: near Basel. Switzerland
Group memberships: Global Moderators, Members
Show profile · Link to this post
A few simple things to check:

is png a recognized extension for media files? (try uploading jpg or pdf files)
does the namespace already contain files with those names? (be aware that Dokuwiki eliminates special characters and so on)
do the filenames contain funny characters?
are the png files intact?
what's the difference between the files that did upload and those that did not?
Avatar
Michaelsy #3
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #1
When manually uploading media files you have to consider the name restrictions of page names. Did you do this? Otherwise you cannot link to them / they are not "recognized" by DokuWiki. See also: https://www.dokuwiki.org/pagename
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
escapingUser #4
Member since Aug 2018 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #2
Thanks for the replies guys.

png's are fine yeah. I get the same issues on jpg also (which most images on the site are.) Nothing corrupted about them or weird in their name. Usually the images are just saved from Snipping tool (the wikis are used for internal documentation), so haven't been through anything crazy.

Names are unique, and I get the same issue even if I select 'overwrite existing files'

As for the ones that do vs don't. Nothing. In fact usually a file that fails to upload one or twice or more may in fact work on the 3rd or 4th try. Or it may not. 

And Like I said the problems are only on the one which is configured for single sign on, so I'm thinking the problem is there.

Michaelsy: True, the files may have had capital letters or spaces in the names when manually adding them to the media directory. Will have to remember that in the future! Wish I didn't have to though, I'd rather just use the uploader.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-14, 09:38:21 (UTC +01:00)