junglejet Active Member Licensed User Longtime User Feb 16, 2014 #1 I am having difficulties to get this done. I am posting an existant file to a php script. I am surprised this works without a proper enctype, but it may be hidden somewhere. Anyway, Jobdone returns with no error. The php script may not be right. Access rights are 777, and php.ini setting is file_upload on. But no success. Has anybody a serverside php script available that works with this code? Thank you Andy -- Code: Copy job2.Initialize("upload", Me) job2.PostFile("http://1111.111/upload/uploader.php",testdir,"diapa1.jpg") Last edited: Feb 16, 2014
I am having difficulties to get this done. I am posting an existant file to a php script. I am surprised this works without a proper enctype, but it may be hidden somewhere. Anyway, Jobdone returns with no error. The php script may not be right. Access rights are 777, and php.ini setting is file_upload on. But no success. Has anybody a serverside php script available that works with this code? Thank you Andy -- Code: Copy job2.Initialize("upload", Me) job2.PostFile("http://1111.111/upload/uploader.php",testdir,"diapa1.jpg")
DonManfred Expert Licensed User Longtime User Feb 16, 2014 #2 Without seeing any php-code we just can guess what the problem is. This example will work. The php-file which is in use in this example can be found here. Attachments multipartpost_fileuploadwithphp.zip multipartpost_fileuploadwithphp.zip 8.1 KB · Views: 587 Upvote 0
Without seeing any php-code we just can guess what the problem is. This example will work. The php-file which is in use in this example can be found here.
junglejet Active Member Licensed User Longtime User Feb 17, 2014 #3 Thanks, it worked so far (files are uploaded), except for this small log line <b>Fatal error</b>: Call to undefined function: json_encode() in <b>/mnt/xxxxxxxxxxxxx/htdocs/upload/multipartpost.php</b> on line <b>116</b><br /> Click to expand... Upvote 0
Thanks, it worked so far (files are uploaded), except for this small log line <b>Fatal error</b>: Call to undefined function: json_encode() in <b>/mnt/xxxxxxxxxxxxx/htdocs/upload/multipartpost.php</b> on line <b>116</b><br /> Click to expand...
DonManfred Expert Licensed User Longtime User Feb 17, 2014 #4 Which version of PHP is running on your server? json_encode needs PHP >= V5.2.0 Edit: This could be an alternative if your server runs php <5.2 Upvote 0
Which version of PHP is running on your server? json_encode needs PHP >= V5.2.0 Edit: This could be an alternative if your server runs php <5.2