No problem. I actually found a better way to compare the two scripts and found several other mistakes -- all in my code. I have it all fixed now. Should have just copied yours over completely. :)
I did add return $new_filename; to the end and added upload_fail_dir to site messages. You did a very nice job on that function. Cheers, Dan On Tue, May 26, 2015 at 1:05 AM Tiffany Grenier <[email protected]> wrote: > Hi, > I haven't tested it yet and won't be able to do so before tonight (I don't > know where you live, but it's almost 8am in Switzerland). > But I can already tell you that if you don't add $BOLTid to the declared > global variables along with $pageLink, your auth check won't work as the > variable value is not known. > Also, you have to put the line with $_POST or the new filename will never > be saved ! > If you have a file input in a form, the name of the file goes to $_FILES, > not $_POST... Plus, we renamed the file, and if we want the new filename > not to be lost (it could come from another field content, as far as I know; > or the file extension could depend on the one from the input image), we > have to put it in $_POST so it can be used in conjunction with savedata, or > at least retrieved via {=upload}. > Cheers, > Tiffany > > -- > You received this message because you are subscribed to the Google Groups > "BoltWire" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/boltwire. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "BoltWire" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/boltwire. For more options, visit https://groups.google.com/d/optout.
