[pmwiki-users] Uploads not working
crisses at kinhost.org
Wed Nov 15 08:17:39 CST 2006
On Nov 15, 2006, at 4:46 AM, Nicholas Buttle wrote:
> Some files seem happy to upload and others not. I've
> just uploaded several .mp4 files after adding the
> extension in local.cfg and they uploaded fine.
> A .pdf on the other hand refuses to upload. The page
> reacts as if the file has uploaded but the link
> doesn't change and the file isn't in the relevant
> upload directory. The file is well within the upload
> limit set in local.cfg and I have eleminated spaces in
> all filenames.
> On the icon image thing. I'm going to try and sort it
> out myself. It'll be a learning process.
You may need to change the settings on uploadable files.
'gif' => 'image/gif', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg',
'png' => 'image/png', 'bmp' => 'image/bmp', 'ico' => 'image/x-icon',
'wbmp' => 'image/vnd.wap.wbmp',
'mp3' => 'audio/mpeg', 'au' => 'audio/basic', 'wav' => 'audio/x-wav',
'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg',
'mov' => 'video/quicktime', 'qt' => 'video/quicktime',
'wmf' => 'text/plain', 'avi' => 'video/x-msvideo',
'zip' => 'application/zip',
'gz' => 'application/x-gzip', 'tgz' => 'application/x-gzip',
'rpm' => 'application/x-rpm',
'hqx' => 'application/mac-binhex40', 'sit' => 'application/x-
'doc' => 'application/msword', 'ppt' => 'application/vnd.ms-
'xls' => 'application/vnd.ms-excel', 'mdb' => 'text/plain',
'exe' => 'application/octet-stream',
'pdf' => 'application/pdf', 'psd' => 'text/plain',
'ps' => 'application/postscript', 'ai' => 'application/postscript',
'eps' => 'application/postscript',
'htm' => 'text/html', 'html' => 'text/html', 'css' => 'text/css',
'fla' => 'application/x-shockwave-flash',
'swf' => 'application/x-shockwave-flash',
'txt' => 'text/plain', 'rtf' => 'application/rtf',
'tex' => 'application/x-tex', 'dvi' => 'application/x-dvi',
'' => 'text/plain'));
This is the defaults -- so I do see pdf in there. You may want to
verify you haven't overwritten any of these.
I don't see mp4 in there so you may want to add that, if that's the
extension on the filename.
$UploadExts['mp4'] = 'audio/mpeg'; //(or whatever it should be)
Double check that you're not hitting the file size limit. Just
because you think you changed it doesn't mean your hosting service
ALLOWS you to change it.
More information about the pmwiki-users