I'm basing my first use of swf upload off of the forms demonstartion. Using the following pages off my site domain
/index.php - main entry point to site shows login box and set session authentication
/admin/file.php?userid=123 - page the loads swf files and shows form details
/admin/filesaver.php - page for swf upload file submission
/admin/file.php?action=uploaded - switch in php code will process the other form details and store in db

my problem is that once the file is uploaded and moved sucessfully by filesaver.php it will return html from the main login page of the site in the hidFileID?
The file path should be whats is returned as the sucessful value from filesaver.php so that when the form is submitted with other values I can store where the file was placed (to remain compatible with the exiting code files are stored uniqly witha timestamp in the name so I need to know this name from the filesaverscipt.

The file is uplaoded and moved sucesfully. a print_r of my $_SESSION value shows that the script is still shown as authenticated, and a print_r of the $_POST values of the form show all the other vallues as entered by the user. The only value that seems out and stops me sucessfully storing the other data in the database is the incorrect hidFileID. I tried turning on the debug in the the script and it shows a text filed showing the loading settings and upload byte progress but the information I am aafter occurs when the upload finishes and page submits/reloads so I don't see whats happening.

I'm a little lost as to how to trouble shoot this. As I said most of the scripting is as per the example - just gettign my feet wet. But I'm really stumped as to why it seems to be getting the login html returned.

Any help would be apreciated.

Initial debug info:

---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_1
Settings:
upload_url: /admin/filesaver.php?id=10
flash_url: /script/swfupload.swf?preventswfcaching=1273509700416
use_query_string: false
requeue_on_error: false
http_success:
assume_success_timeout: 0
file_post_name: uploadedfile
post_params: [object Object]
file_types: *.*
file_types_description: All Files
file_size_limit: 200 MB
file_upload_limit: 0
file_queue_limit: 1
debug: true
prevent_swf_caching: true
button_placeholder_id: spanButtonPlaceholder
button_placeholder: Not Set
button_image_url: /images/SmoothButtonUploadText_80x96.png
button_width: 80
button_height: 24
button_text:
button_text_style: color: #000000; font-size: 16pt;
button_text_top_padding: 0
button_text_left_padding: 0
button_action: -110
button_disabled: false
custom_settings: [object Object]
Event Handlers:
swfupload_loaded_handler assigned: true
file_dialog_start_handler assigned: true
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_start_handler assigned: false
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true

SWFUpload.SWFObject Plugin settings:
minimum_flash_version: 9.0.28
swfupload_pre_load_handler assigned: false
swfupload_load_failed_handler assigned: false

SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.2.0
SWF DEBUG: movieName: SWFUpload_1
SWF DEBUG: Upload URL: /admin/filesaver.php?id=10
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: HTTP Success: 0
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit: 209715200 bytes
SWF DEBUG: File Upload Limit: 0
SWF DEBUG: File Queue Limit: 1
SWF DEBUG: Post Params:
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:

NOTE - code below was urlencoded but is reverted back to HTML by this forum.
PHP print_r results of passed values
$_POST[] Array
(
[MAX_FILE_SIZE] => 262144000
[comment] => This is a text field sample comment
[email] => on
[action] => upload
[hidFileID] => <html>
<head>
<title> File Uploader</title>
<link href="css/main.css" rel="stylesheet" type="text/css" media="all" />

<script language="JavaScript" src="script/dynamic.js"></script>
</head>
<body style="text-align:center;">
<div align="center">

<div id="header" style="width:780px;margin-right:auto;margin-left:auto;">
<div style="text-align:right">
</div>
</div>

</div>
<div id="content" align="center" style="width:780px;margin-right:auto;margin-left:auto;">
<form name="login" method="post" action="login.php">

<table border="0" cellspacing="0" cellpadding="5" align="center">
<tr><td colspan='2'><h2>Please login...</h2></td></tr>

<tr>
<td><div class="smalltext">Login Name</div></td>
<td align="right"><input type="text" name="fieldlogin" value=""></td>

</tr>
<tr>
<td><div class="smalltext">Password</div></td>
<td align="right"><input type="password" name="fieldpass"></td>

</tr>
<tr>
<td colspan="2"><input type=hidden name=action value=login>
<div align="right"><button value="submit" type="submit" class="submitBtn"><span>Login</span></button></div>

</td>
</tr>
</table></form>
</div>
</body>
</html>

[id] => 10
)

$_SESSION[] Array
(
[id] => 10
[authpass] => 1
[username] => testUser
)