Advanced Multi Uploader Support Product Page
Advanced Multi-Uploader reports 401
Asked 15 Aug 2013 23:30:03
1
has this question
15 Aug 2013 23:30:03 Bart Garner posted:
Advanced Multi-Uploader reports "401- Unauthorized. Permissions are correct because I can upload to the same folder using another PHP Uploader page.[php]
<?php require_once('../ScriptLibrary/incPureUpload.php'); ?>
<?php
// Pure PHP Upload 2.1.12
$ppu = new pureFileUpload();
$ppu->path = "../images/properties";
$ppu->extensions = "GIF,JPG,JPEG,BMP,PNG,TIF,TIFF,GIFF,PDF,ZIP,TXT";
$ppu->formName = "UploadQueue";
$ppu->storeType = "file";
$ppu->sizeLimit = "";
$ppu->nameConflict = "uniq";
$ppu->nameToLower = false;
$ppu->requireUpload = false;
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "blueFlashProgress.htm";
$ppu->progressWidth = "300";
$ppu->progressHeight = "100";
$ppu->redirectURL = "";
$ppu->checkVersion("2.1.12"

$ppu->doUpload();
if (isset($editFormAction)) {
if (isset($_SERVER['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $_SERVER['QUERY_STRING'])) {
$editFormAction .= "&GP_upload=true";
}
} else {
$editFormAction .= "?GP_upload=true";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="robots" content="noindex">
<script src='../ScriptLibrary/incPureUpload.js' type="text/javascript"></script>
</head>
<body>
<form action="<?php echo $GP_uploadAction; ?>" method="post" enctype="multipart/form-data" name="UploadQueue" id="UploadQueue" onSubmit="checkFileUpload(this,'GIF,JPG,JPEG,BMP,PNG,TIF,TIFF,GIFF,PDF,ZIP,TXT',false,'','','','','','','');showProgressWindow('blueFlashProgress.htm',300,100);return document.MM_returnValue">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,63,0" name="upload1" width="500" height="350" align="middle" id="upload1">
<param name="FlashVars" value="url=<?php echo urlencode($GP_uploadAction); ?>&formName=UploadQueue&allowedExtensions=GIF,JPG,JPEG,BMP,PNG,TIF,TIFF,GIFF,PDF,ZIP,TXT"&redirectUrl=".$ppu->redirectURL;}?>" />
<param name="movie" value="dmxMultiUploader.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<!--[if !IE]>-->
<embed src="dmxMultiUploader.swf" name="upload1" quality="best" flashvars="url=<?php echo urlencode($GP_uploadAction); ?>&formName=UploadQueue&allowedExtensions=GIF,JPG,JPEG,BMP,PNG,TIF,TIFF,GIFF,PDF,ZIP,TXT"&redirectUrl=".$ppu->redirectURL;}?>" wmode="transparent" type="application/x-shockwave-flash" width="500" height="350" pluginspage="www.macromedia.com/go/getflashplayer" /></embed>
<!--<![endif]-->
</object>
<input name="Filename" type="file" style="display:none" onChange="checkOneFileUpload(this,'GIF,JPG,JPEG,BMP,PNG,TIF,TIFF,GIFF,PDF,ZIP,TXT',false,'','','','','','','')" />
<input type="hidden" name="Filedata" />
<script type="text/javascript">window.upload1 = document.forms["UploadQueue"].upload1;</script>
</form>
</body>
[/php]
Replies
Replied 16 Aug 2013 11:58:11
16 Aug 2013 11:58:11 Miroslav Zografski replied:
Hello Bart,
Are there any authorisations set somewhere?
Regards.
Are there any authorisations set somewhere?
Regards.
Replied 16 Aug 2013 19:11:09
16 Aug 2013 19:11:09 Bart Garner replied:
No. Access is restricted by .htaccess only.
Replied 19 Aug 2013 05:58:54
19 Aug 2013 05:58:54 Miroslav Zografski replied:
Well,
That is the problem. Each file upload, when Multi uploader is used, is a new Session to Server. Thus it must be authenticated against the .htaccess restriction.
Regards.
That is the problem. Each file upload, when Multi uploader is used, is a new Session to Server. Thus it must be authenticated against the .htaccess restriction.
Regards.