-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZeroBin for Files #57
base: master
Are you sure you want to change the base?
Conversation
The ability to change the maximum file size would be nice. 2MB is not big enough. |
Just merged this into my install and it seems to be working as intended with a Max file size limit of 2MB. Great addition. |
@petterolsson Glad you liked it |
That worked. Thanks! |
really cool.. I have it running at https://zerobin.permutation.net no matter what I set https://github.com/sebsauvage/ZeroBin/blob/master/index.php#L152 to it would appear that its limited to about 512 kb nothing larger seems to work.
|
@gwenhastings Maybe the limitation is set server-side ? For example, in your PHP(-fpm) configuration, or your web server configuration. |
Hi Hex, and in addition I tried the following in the start of index.php just for this. require_once "lib/vizhash_gd_zero.php"; no it feels like the javascripts are breaking this is for firefox 25.01 and latest chrome.
ps its at https://zerobin.permutation.net if you want to see for yourself |
I'm no PHP expert but AFAIK you can't override php.ini values with |
to answer more exhausively.. this is a real server that I control .. down to the bare iron.. the /etc/php-5.3.ini is: |
Just guessing here (sorry...), is it possible your Server (e.g. Apache) loads another php.ini with different settings? If you use some PHP application not related to ZeroBin, can you upload >512kib files? EDIT: Sorry, you already wrote it does. This is quite strange indeed. |
Found the issue. I think I added a configurable value for that in my config pull request. |
naw thats NOT the issue.. and it should allow a 2mb upload and at least one person trying the code reports sucess.. and I reference that above if you read previous posts up above.. As related on the bug I filed against the source tree there are several other php based apps on this server loading up to 200 or so mb without issue, ie I built the server from the bare iron out.. compiled ALL software in use from source or ports . its the ONLY php-5.3.ini in the file system and the binary refers to it directly..no the symptoms I am seeing here are related to a software defect.. I will use firebug shortly to find out where the code is exiting at and see if I understand what is going on.
|
Sorry, I saw your reference shortly after posting and edited it. I believe the issue is caused by the line referenced in the last comment. Firebug won't help you too much here, because it's used for clientside debugging.Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. |
Actually without getting into a pissing match about debug methodologies firebug(zerobin is after all primarily javascript based in the browser) is quite useful here after I un minified all the javascript libraries involved. I seem to be chasing about 4 separate bugs at this point one in rawdeflate.js another couple in sjcl.js and possibiy another in jquery.js(I am running latest git on all of these). Another issue is the code was NEVER as far as I know tested beyond a couple of screen sized text cut and pasties prior to file uploads being added, I suspect this is the first time that zerobin has been pushed even to 512k. The precise git I am using is https://github.com/jigarvyas/ZeroBin.git should I be pulling another? It might be of assistance for those offering to help here to run this file upload branch on a vps/vm to get a first hand look at the issues involved prior to offering assistance, that way we can talk about the same issues:) (I am sure we have enough bugs to go around for all ) The environment has been running zerobin since 0.15 I have rebuilt both sjcl.js and jquery.js from scratch and un-minified for debugging. I have used 3 different browsers to test from the OSX environment and will transfer both server code and browser environment to a latest SVN debian vm today for further datapoints. The problems are consistent to say the least.
|
This file https://www.genua.fr/ZeroBin/?ec85e9142df2efaa#3aCU4HQu086l4MgsSPB2ETFRXmoY5yH7dBjfP0S6IAY= is up to 932KB and this one, https://www.genua.fr/ZeroBin/?5ca3731acd3ccbe2#PcApMx3jwiwlf2YygxcFmcrOTzsnhbKfd2xg9qDZ+Cs= up to 2,9MB So, you can be sure now of the claim above that someone has pushed 2M images. For the record, I just pull https://github.com/jigarvyas/ZeroBin.git into my clone of sebsauvage/ZeroBin and edit the line https://github.com/sebsauvage/ZeroBin/blob/master/index.php#L152. For example, for the 2,9MB file, the posted content size is 5,2MB. |
Not entirely true. I myself used Zerobin to paste very large text files, way more than 2MB of text (for which I had to edit the line @ulikoehler mentionned in his previous comment), and I had no problem with it. Just tried with a 6MB+ text file here : https://hexrandom.com/zerobin/?6ba30ec288877d5a#2Zoa1hfx6pPC6u6+0JihvLuik8LyyH5VvFGUksC2Wdo= My installation runs on Nginx with php-fpm. EDIT : well, somebody was faster than me, and posted while I was writing and doing some extended tests ;) |
ARGHHHH!!!!! this appears to be an OpenBSD 5.1 Php5.3 bug as it fails in exactly the same way as my production server , I just finished testing on a one off VM I installed just to check the release code..(for openbsd etc)(Time to try testing on 5.4 and upgrading of that server(about 8500 miles distant etc)), thanx for the additional data points as I was beginning to think it was me(I dont have time to go down the rabbit hole on this bug, I will simply reinstall and test the file version of Zerobin on a linux VM and expose that to the outside via vpn tunnel) Thanx for all of your assistance and datapoints of working installs.. |
double argh.. its NOT a bug its suhosin!ARGH!!! put: php_value upload_max_filesize 32M in an .htaccess fle to turn off OpenBSD php 5.3 default suhosin install Thanx all for your help and additional datapoints..
|
further updates is that the directive suhosin.simulation On does NOT work in an .htaccess file only as a php_admin_flag within a\ < Directory > ... scope as per http://stackoverflow.com/questions/11537965/php-flag-in-htaccess
sigh now testing for much larger files ie 4 mb 8 mb 16 mb 32 mb etc |
further updates.. BTW really loving this patch.. have been wanting the file upload feature to provide services to NGO's in conflict areas via TOR.. |
Hmm there seems to be an issue with TBB(Tor browser Bundle) on OSX.. an "external application is needed to handle this content windows come up with a load of x64 data.. but no OK or cancel button ever. ie this patch works perfectly in normal firefox.. so suspect tbb changes parameters in about:config |
New Issue.. when uploading files such as mobi because of no mime type embeddment or errors in same if used .mobi files attempt to download as .bin |
Additional new issue when both a file paste and a text paste are attempted together then only the text paste is processed, the file paste is ignored(perhaps they should be folded into a multipart document format? or some other appropriate handling?) |
Added support to share files via ZeroBin using the FileReader API