![]() |
I've been doing a bit more digging and it seems that the POST vars have to be in the form of an object. They can be inline as I had them, or declared earlier. Unfortunately, you can't use a standard string with all the POST information combined here.
My problem is still that I can't use SESSIONURL + 'securitytoken' as the name of variable, since I'm ultimately trying to POST: Code:
SESSIONURL + 'securitytoken=' + SECURITYTOKEN Code:
// THIS DOES NOT WORK Thanks, James |
Try:
Code:
uploader.upload(fileID, 'http://tforum.mydomain.com/uploadzip.php', 'POST', { |
Thanks Dismounted. That appears to be working so far.
Now I'm also looking at using the YUI uploader to allow selecting multiple files (with upload progress bars) for album uploads. In some ways this will be simpler than the original project I had for uploading & adding photos from a .ZIP file. Looking at the hidden form fields in the album_picture_upload template: Code:
<input type="hidden" name="s" value="$session[sessionhash]" /> Am I correct that these two do the same thing? Code:
//In the template Code:
//In the javascript uploader POST object This just leaves the javascript not knowing the albumid or MAX_FILE_SIZE, I believe. Is the best way to pass these variables from PHP to javascript, the way I have been doing it so far? Code:
<script type="text/javascript">var jababumid = <?php echo $albuminfo['albumid']; ?>;</script> James |
Quote:
|
All times are GMT. The time now is 10:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|