yeah, it just keeps loading a blank document like the picture above and is giving me 0 byte size links
If I resize the pictures on my phone, and upload them using the default File Uploader program, the pictures will consistently upload. But with your App for some reason somethings happening that's causing the files to get corrupt, or falsely uploading (Not sure what it would be considered). The images are ending up in their respective folders they are uploaded to, they just are 0 bytes in size
Ok @BrandonP I will try to help, bare in mind there is the third party code, my code, and tech constraints.
It is times like this that it would be good to get positive and negative feedback becuase 475 have downloaded, and I wonder if it it just two that had this problem.
I would like detail about your sever, what are you running apache, nginx, etc?
Do you mind doing a phpinfo()? If you put this in a file an point to it.
If you can click new discussion. In firebug go the the "Net". Click on "Clear" (you can clear every time you try this)
Try upload an image.
You will see a bunch of request for each request come up. For each request click on the '+'
then the "Response" tab then copy the details (if it is too long you don't have to copy all of it), also right click and "copy response header", record all this in relation to each request line
Next idea, there is a little menu on the "Net" Tab click on the upside down triangle, and click "disable browser cache".
Now along the line of what vrijvlinder suggested in /plugins/PlUpload/js/plupload.js
you can change this line runtimes : 'gears,html5,flash,silverlight,browserplus',,
inside the single quotes I suggest you try an upload using one value at a time so first only 'gears', then 'html5', and so on finishing with html4. silverlight is unlikely but whatever.
One thing I do notice is that every time i click to upload the files, watching the firebug app it says SIZE 0B before it even starts. After upload is 100% complete, firebug remains loading on the timeline for a few seconds even after it completes.
POST multiupload Response source
{"MediaResponse":{"Status":"success","MediaID":false,"Filename":"Sample_icon_100x100","Filesize":null,"FormatFilesize":"0B","PreviewImageLocation":"\/forums\/plugins\/FileUpload\/images\/file.png","FinalImageLocation":"http:\/\/safeoperator.net\/forums\/uploads\/FileUpload\/ef\/4544b1e1972cb5c1393fef04fe55b8.gif"}}
I went to their site and saw a few upgrades they made, I added those files to the plugin , did your version have drag and drop? if not I discovered something , now I can drag and drop images into the editor from another browser window and they get posted.
Comments
Same problem for each?
grep is your friend.
yeah, it just keeps loading a blank document like the picture above and is giving me 0 byte size links
If I resize the pictures on my phone, and upload them using the default File Uploader program, the pictures will consistently upload. But with your App for some reason somethings happening that's causing the files to get corrupt, or falsely uploading (Not sure what it would be considered). The images are ending up in their respective folders they are uploaded to, they just are 0 bytes in size
heres a screenshot from my samsung galaxy S3
If you wish to try changing the runtime order and add html4, it could be that has something to do
runtimes : 'html5,browserplus,silverlight,flash,gears,html4',
in the plupload.js
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
Ok @BrandonP I will try to help, bare in mind there is the third party code, my code, and tech constraints.
It is times like this that it would be good to get positive and negative feedback becuase 475 have downloaded, and I wonder if it it just two that had this problem.
I would like detail about your sever, what are you running apache, nginx, etc?
Do you mind doing a phpinfo()? If you put this in a file an point to it.
If you prefer to be in private PM me.
grep is your friend.
I sent you the PM with the phpinfo
Can you try uploading a small file like an icon?
Do you use firebug? If not can you?
If you can click new discussion. In firebug go the the "Net". Click on "Clear" (you can clear every time you try this)
Try upload an image.
You will see a bunch of request for each request come up. For each request click on the '+'
then the "Response" tab then copy the details (if it is too long you don't have to copy all of it), also right click and "copy response header", record all this in relation to each request line
Next idea, there is a little menu on the "Net" Tab click on the upside down triangle, and click "disable browser cache".
Now along the line of what vrijvlinder suggested in /plugins/PlUpload/js/plupload.js
you can change this line
runtimes : 'gears,html5,flash,silverlight,browserplus',
,inside the single quotes I suggest you try an upload using one value at a time so first only 'gears', then 'html5', and so on finishing with html4. silverlight is unlikely but whatever.
grep is your friend.
POST multiupload
{"MediaResponse":{"Status":"success","MediaID":false,"Filename":"logo","Filesize":null,"FormatFilesize":"0B","PreviewImageLocation":"\/forums\/plugins\/FileUpload\/images\/file.png","FinalImageLocation":"http:\/\/safeoperator.net\/forums\/uploads\/FileUpload\/8d\/e3d5cf4b2d4d52300d49a3139f2eec.png"}}
POST inform
{"FormSaved":false,"DeliveryType":"BOOL","Data":"MQ==","InformMessages":[],"ErrorMessages":"","RedirectUrl":""}
POST inform
{"FormSaved":false,"DeliveryType":"BOOL","Data":"MQ==","InformMessages":[],"ErrorMessages":"","RedirectUrl":""}
===========
I tried to change the stuff you mentioned as well, and it didn't help
Response Headersview source
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Encoding gzip
Content-Length 221
Content-Type text/html
Date Sun, 24 Mar 2013 19:36:48 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Keep-Alive timeout=5, max=100
Last-Modified Sun, 24 Mar 2013 19:36:59 GMT
Pragma no-cache
Server Apache
Vary Accept-Encoding
Request Headersview source
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Content-Length 168010
Content-Type multipart/form-data; boundary=---------------------------225082725131424
Cookie wp-settings-time-1=1363827630; wp-settings-1=editor%3Dtinymce%26hidetb%3D1%26libraryContent%3Dbrowse; Vanilla=1-1366329778%7C712dad8b95442cd7ba07b17a15e44ae6%7C1363737778%7C1%7C1366329778; wordpress_logged_in_85672006ef55582711787d9bf9e5e3d2=Brandon%7C1364952184%7Cf6dee8a53096a325e143a57b6584d3a1; PHPSESSID=e9629d4ef6cc89aed3f99fd23864b311; Vanilla-Volatile=1-1364324850%7C09c09dfcbffac3145e07608d30b7914d%7C1364152050%7C1%7C1364324850
DNT 1
Host safeoperator.net
Pragma no-cache
Referer http://safeoperator.net/forums/post/discussion
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
=====================
POST multiupload
{"MediaResponse":{"Status":"success","MediaID":false,"Filename":"logo","Filesize":null,"FormatFilesize":"0B","PreviewImageLocation":"\/forums\/plugins\/FileUpload\/images\/file.png","FinalImageLocation":"http:\/\/safeoperator.net\/forums\/uploads\/FileUpload\/d7\/f686ea0c01be9894a2705a2d6e94d5.png"}}
Ok, I did find one thing when i was looking through the coding..
on default.php I found a spelling error. Still didnt fix the problem, but it may be part of the problem.
$Validation = new Gdn_Validation(); if ($Sender->Form->AuthenticatedPostBack()) { $Validation->ApplyRule('Plugins.PlUpload.PreMaxUploadSize', 'Integer'); $Validation->ApplyRule('Plugins.PlUpload.PreMaxUploadQuality', 'Integer');
The PreMaxUploadQuality before was listed as :
$Validation->ApplyRule('Plugins.PlUpload.PreMaxUploadQuality', 'Interger');
I'm guessing you refreshed each time you tried with the different upload methods.
thanks for the proof reading.
Can you supply the contents of the "Post" tab for POST multiupload.
Thanks.
grep is your friend.
Ok i'll do that right now.
One thing I do notice is that every time i click to upload the files, watching the firebug app it says SIZE 0B before it even starts. After upload is 100% complete, firebug remains loading on the timeline for a few seconds even after it completes.
Source
-----------------------------94591498831509 Content-Disposition: form-data; name="name" logo.png -----------------------------94591498831509 Content-Disposition: form-data; name="file"; filename="logo.png" Content-Type: image/png PNG ��� IHDR�� ��À���ØG)é��� pHYs������� MiCCPPhotoshop ICC profile��xÚSwX÷>ß÷eVBØð±l�"#¬ÈY¢�a@Å VHUÄÕ Hâ (¸gAZU\8îܧµ}zïííû×û¼ççüÎyÏ&æ¢j�9R <:ØOHÄɽHà æËÂgÅ��ðyx~t°?ü¯o��pÕ.$ÇáÿºP&W� �à"çR�È.TÈ�È�°S³d ���ly|B"�ª �ìôI>�Ø©Ü�Ø¢©��(G$@»�
UR,ÀÂ� ¬@".À®Y¶2G½�vX@
�B,Ì� 8�CÍ L 0Ò¿à©p ¸H�ÀËÍKÒ3¸Ðwòðàâ!âÂl±Ba)f ä"#HçLÎ��ùÑÁþ8?çæäáæfçlïôÅ¢þkðo">!ñßþ¼�NÏïÚååÖpÇ°u¿k©[�ÚV�hßù]3Û Z Ðzùy8ü@¡PÈ< í%b¡½0ã>ÿ3áoà~öü@þÛzð�q@À£ýqanv®RçËB1n÷ç#þÇ ý)Ñâ4±\,ñX¸P"MÇy¹RD!Éâé2ñý w �¬OÀN¶µËlÀ~îXÒv�@~ó-�g42y÷��¿ù@+�ͤã��¼è\¨LÆ��D °AÁ¬ÀÁ¼ÀaD@$À<Bä ¡ATÀ:ص° á´Á18 çà\ëp¼ AÈa!:bØ"Î"aH4¤ éQ"ÅÈr¤©Bj]H#ò-r9\@úÛÈ 2ü¼G1²QÔu@¹¨Æ sÑt4]¢kÑ´=¶¢§ÑKèut�}cÑ1fÙa\E
X&ÇcåX5V5cX7vÀaï$ì^ÂlGXLXC¨%ì#´ºW 1Â'"¨O´%zùÄxb:±XF¬&î!!%^'_H$ÉäN !%2IIkHÛH-¤S¤>ÒiL&ëmÉÞ䲬 ·OûÉÃä·:ÅâL ¢$R¤J5e?å¥2B ªQÍ©Ôª:ZIm vP/S©4u%ÍCˤ-£ÕÐigi÷h/étº ÝEÐÒkèéçéôw ÇHb(k{§·/L¦ÓÈT0×2goUXö|Ê:V~çªTUsU?ÕyªT«U«^V}¦FU³Pã© Ô«Õ©U»©6®ÎRwRPÏQ_£¾_ýúc ² F H£Tc·Æ!Æ2eñXBÖrVë,kMb[²ùìLvûv/{LSCsªf¬ffæqÍƱàð9ÙJÎ!Î Î{--?-±Öjf~7ÚzÚ¾ÚbírííëÚïup@,õ:m:÷u º6ºQº ºÛuÏê>Ócëyé õÊõéÝÑGõmô£õêïÖïÑ7046l18cðÌcèki¸Ñðá¨ËhºÄh£ÑI£'¸&îgã5x>f¬ob¬4ÞeÜk<abi2ۤĤÅä¾)ÍkfºÑ´ÓtÌÌÈ,ܬجÉì9Õka¾Ù¼Ûü ¥EÅJ6ÇÚ|ËM÷¬V>VyVõV׬IÖ\ë,ëmÖWlPW:˶¨Ävmßâ)Ò)õSnÚ1ìüì ììí9öaö%ömöÏÌÖ;t;|rtuÌvlp¼ë¤á4éĩÃéWgg¡só5¦KËvSm§§nzËåîºÒµÓõ£»ÜÙmÔÝÌ=Å}«ûM.É]Ã=ïAôð÷XâqÌ㧧Âóç/^v^Y^û½O³&Ö0mÈÛÄ[à½Ë{:>=eúÎé>Æ>z¾¦¾"ß=¾#~Ö~~üû;úËýø¿áyòñN
Áå½³k¥5»/>B YroÀòùc3Üg,ÑÊZú0Ì&LÖÏß~o¦ùLé̶àGl¸iù})2ª.êQ´Stqt÷,Ö¬äYûg½ñ©¹;Ûj¶rvg¬jlRlc츸ª¸xøEñt$ íäÄØÄ=ãsçl3äTtc®åÜ¢¹æéÎËw<Y5Y|8 ²?å BP/Oå§nMò OE¾¢¢Q±·¸J<æVö8Ý;}CúhOFuÆ3 OR+y¹#óMVDÖÞ¬ÏÙqÙ-9£R i´+×0·(·Of++ äyæmÊÊ÷ä#ùsóÛl LÑ£´R®PL/¨+x[[x¸H½HZÔ3ßfþêù#|½°P¸°³Ø¸xYñà"¿E»#SAh so that is a pretty big clue, it rules out server side issue.
grep is your friend.
If that is the case I will get onto the plupload guys.
grep is your friend.
What formats have you tried? have you tried jpg, png, gif? Try with small images/icons.
grep is your friend.
I had to cut some of it out because there were character limit
I've tried JPG, and PNG formats. haven't tried GIF formats yet
Tried 100x100 icon gif:
POST multiupload Response source
{"MediaResponse":{"Status":"success","MediaID":false,"Filename":"Sample_icon_100x100","Filesize":null,"FormatFilesize":"0B","PreviewImageLocation":"\/forums\/plugins\/FileUpload\/images\/file.png","FinalImageLocation":"http:\/\/safeoperator.net\/forums\/uploads\/FileUpload\/ef\/4544b1e1972cb5c1393fef04fe55b8.gif"}}
POST multiupload Headersview source
Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection Keep-Alive
Content-Encoding gzip
Content-Length 234
Content-Type text/html
Date Sun, 24 Mar 2013 23:01:13 GMT
Expires Mon, 26 Jul 1997 05:00:00 GMT
Keep-Alive timeout=5, max=100
Last-Modified Sun, 24 Mar 2013 23:01:13 GMT
Pragma no-cache
Server Apache
Vary Accept-Encoding
Request Headersview source
Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding gzip, deflate
Accept-Language en-US,en;q=0.5
Cache-Control no-cache
Connection keep-alive
Content-Length 3040
Content-Type multipart/form-data; boundary=---------------------------48319131038
Cookie wp-settings-time-1=1363827630; wp-settings-1=editor%3Dtinymce%26hidetb%3D1%26libraryContent%3Dbrowse; Vanilla=1-1366329778%7C712dad8b95442cd7ba07b17a15e44ae6%7C1363737778%7C1%7C1366329778; wordpress_logged_in_85672006ef55582711787d9bf9e5e3d2=Brandon%7C1364952184%7Cf6dee8a53096a325e143a57b6584d3a1; PHPSESSID=f76ec1065189a1a80f7eef5ba5d95c13; Vanilla-Volatile=1-1364336293%7C244e406106d57fbe6210e81a653379d5%7C1364163493%7C1%7C1364336293
DNT 1
Host safeoperator.net
Pragma no-cache
Referer http://safeoperator.net/forums/post/discussion
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
can I have the contents of "post" tab of the 100x100 icon?
you can use <pre>[contents]</pre> to display it back to me
Or it is too large can you put it up on dropbox or something?
grep is your friend.
I went to their site and saw a few upgrades they made, I added those files to the plugin , did your version have drag and drop? if not I discovered something , now I can drag and drop images into the editor from another browser window and they get posted.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌