Open kk86bioinfo opened 9 years ago
Thanks for the feedback. I will look into it as soon as I can.
I am going to check it out tonight. If you can post some additional information on the bug it might help out in finding and fixing it.
What OS where you using? Was PHP packed with your project or where you using a stand alone install? What version of PHP where you using? What version of NW.js where you using? What type of upload script (IE just a simple PHP upload, AJAX upload, upload within a certain CMS or framework)? What file type was being uploaded? What was the file size being upload?
I will be testing and attempting to fix uploading and related bugs in general. But if I can get the details of your case I will try to ensure that gets fixed as well.
Thanks.
Hi Brad,
Regarding your questions. Here are some of my details:
What OS where you using?
> MacOSX Yosemite
Was PHP packed with your project or where you using a stand alone install?
> PHP 5.6 (all configurations, php.ini copied from AMPPS), I move the php-cgi and php.ini to the bin/php folder of php-webkit.
What version of PHP where you using?
> PHP 5.6
What version of NW.js where you using?
> Latest build of IO.js v12
What type of upload script (IE just a simple PHP upload, AJAX upload, upload within a certain CMS or framework)?
> I am using Dropzone.js (not code with nodejs, just web embedded jquery)
What file type was being uploaded?
> Image/jpg
What was the file size being upload?
> Less than 1MB (around 560kB)
Hope it helps.
Btw, I notice when I run php-webkit, some windows based
platform environmental variables is not auto detected by the phpinfo. I have to workaround by using node.js process.env.[VARIABLE_NAME] to get the values instead of php getenv. Is that purposely design to such case?
Regards, KK
On Sat, Apr 11, 2015 at 7:08 AM, Brad Metcalf notifications@github.com wrote:
I am going to check it out tonight. If you can post some additional information on the bug it might help out in finding and fixing it.
What OS where you using? Was PHP packed with your project or where you using a stand alone install? What version of PHP where you using? What version of NW.js where you using? What type of upload script (IE just a simple PHP upload, AJAX upload, upload within a certain CMS or framework)? What file type was being uploaded? What was the file size being upload?
I will be testing and attempting to fix uploading and related bugs in general. But if I can get the details of your case I will try to ensure that gets fixed as well.
Thanks.
— Reply to this email directly or view it on GitHub https://github.com/baconface/php-webkit/issues/17#issuecomment-91713201.
Loke Kok Keong PhD Candidate of Computational Systems Biology Centre for Bioinformatics Research (CBR) Institute of Systems Biology (INBIOSIS) Universiti Kebangsaan Malaysia (UKM) 43600 Bangi Selangor Malaysia HP: 0102266792 kk86bioinfo@gmail.com
Btw, I notice when I run php-webkit, some windows based platform environmental variables is not auto detected by the phpinfo. I have to workaround by using node.js process.env.[VARIABLE_NAME] to get the values instead of php getenv. Is that purposely design to such case?
The project originally started as a boilerplate for using the node-php NPM by @mkschreder within NW.js. lib/bridge.js is basically a php-webkit specific fork of this NPM. Since then it has been a matter of getting it to work as properly and it still has a lot of room for improvement as far as what ENV need to be set and how to be set. I just haven't been able to find and fix all the gotchas or take a moment to restructure that part of the code base. But it is something I have slowly been working on. If this is something you have an idea to improve I welcome suggestions or even a pull request. Additionally would using something like this commit help you?
Hi, Would like to know in what condition can overcome this error of UPLOAD_ERR_PARTIAL when trying to post image in NW.js app wrapped under PHP-webkit? I test in normal browser is fine, but when migrate the exact same HTML + PHP script to PHP-webkit it get the error of upload partial.