Aurigma Forums
»
Upload Suite
»
FAQ – ActiveX/Java Uploader
»
PRB: Apache log says: [error] PHP Notice: Undefined index: PackageFileCount
Rank: Advanced Member
Groups: Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
As you know, Image Uploader sends files and additional metadata from client computers to server side in HTTP POST requests. This approach requires server script to parse the received requests and handle uploaded data. In the case if you do not use Image Uploader PHP server-side classes, and parse the POST request using $_FILES and $_POST "superglobals", Image Uploader sends HEAD request before POST ones to check if authentication is needed. Server-side script should not parse these requests. Thus, it is required to add the check whether the current request is POST at the beginning of the server-side script: Code:
// Check if it is POST request
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
exit();
}
//…code to save uploaded files…
Edited by user Wednesday, December 8, 2010 3:47:50 AM(UTC)
| Reason: Not specified |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Aurigma Forums
»
Upload Suite
»
FAQ – ActiveX/Java Uploader
»
PRB: Apache log says: [error] PHP Notice: Undefined index: PackageFileCount
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.