Quote:
Originally Posted by kh99
If you edit a post then press the Attachments button to bring up that popup, then do "View Source" on that popup window, I think it might have everything you need.
|
Yea im trying to do just that, I took all the variables in the form submission, put them into my custom html and tried submitting from my custom php file and it just wont take. I cant wrap my head around the issue...
Here is what I have:
PHP Code:
<form enctype="multipart/form-data" action="newattachment.php?do=manageattach&p=1982" name="newattachment" method="post">
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="manageattach" />
<input type="hidden" name="t" value="208" />
<input type="hidden" name="f" value="2" />
<input type="hidden" name="p" value="1982" />
<input type="hidden" name="poststarttime" value="1303943857" />
<input type="hidden" name="editpost" value="1" />
<input type="hidden" name="posthash" value="2608dd6db75e2c448ee70aa358eab0a3" />
<fieldset class="fieldset">
<input type="hidden" name="MAX_FILE_SIZE" value="33554432" />
<input type="file" class="bginput" name="attachment[]" size="30" /><br />
<input type="file" class="bginput" name="attachment[]" size="30" /><br />
<input type="submit" class="button" name="upload" value="Upload" style="width:70px"/></td>
</fieldset>
</form>
I manually put in all the values to match up with my test thread, except for the session hash which im letting vb fill in