Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

[Solved] Images not uploading

24

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

    image

  • edited March 2013

    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

    var uploader = new plupload.Uploader({
                runtimes : 'gears,html5,flash,silverlight,browserplus',
                max_file_count: 20,
                unique_names: false,
                multiple_queues: true,
                browse_button : 'pl_pickfiles_'+id,
                pl_container : 'pl_container_'+id,
                max_file_size : plDefs['PreMaxUploadSize']+'mb',
                url : gdn.url('/post/multiupload'),
                flash_swf_url : gdn.url('plugins/PlUpload/js/plupload/plupload.flash.swf'),
                silverlight_xap_url : gdn.url('plugins/PlUpload/js/plupload/plupload.silverlight.xap'),
                filters : [
                    {title : "Allowed files", extensions : plDefs['AllowedFileExtensions'].join(',')},
                ],
                resize : {width : plDefs['PreMaxUploadWidth'], height : plDefs['PreMaxUploadHeight'], quality : plDefs['PreMaxUploadQuality']}
            });
    

  • x00x00 MVP
    edited March 2013

    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.

    <?php
    phpinfo();
    

    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.

  • BrandonPBrandonP New
    edited March 2013

    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');

  • x00x00 MVP
    edited March 2013

    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.

  • BrandonPBrandonP New
    edited March 2013

    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„@Ņˆ VœHUÄ‚Õ Hˆâ (¸gAŠˆZ‹U\8îܧµ}zïííû×û¼çœçüÎyπ&‘æ¢j�9R…<:؏OHÄɽ€Hà æËÂgÅ��ðyx~t°?ü¯o��pÕ.$ÇáÿƒºP&W� ‘�à"çR�È.TÈ�È�°S³d �”��ly|B"�ª �ìôI>�Ø©“Ü�Ø¢©��™(G$@»�UR,ÀÂ� ¬@".À®€Y¶2G€½�vŽX@�€™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È&lt; í%b¡½0ã‹>ÿ3áoà‹~öü@þÛzð�qš@™­À£ƒýqanv®RŽçËB1n÷ç#þDžýŽ)Ñâ4±\,ŠñX‰¸P"MÇy¹R‘D!ɕâé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åX5V5cX7vÀžaï$‹€ì^„Âl‚GXLXC¨%ì#´ºW ƒ„1Â'"“¨O´%zùÄxb:±XF¬&î!!ž%^'_“H$ɒäN !%2IIkHÛH-¤S¤>ÒiœL&ëmÉÞ䲀¬ —‘·O’ûÉÃä·:ňâL ¢$R¤”J5e?奟2B™ ªQÍ©žÔªˆ:ŸZIm vP/S‡©4uš%͛Cˤ-£ÕКigi÷h/étº ݃E—ЗÒkèéçéƒôw † ƒÇHb(k{§·/™L¦Ó—™ÈT0×2™g˜˜oUXö|‘Ê•:•V•~•çªTUsU?ÕyªT«U«^V}¦FU³Pã© Ô«Õ©U»©6®ÎRwRPÏQ_£¾_ý‚úc ²†…F †H£Tc·Æ!Æ2eñXBÖrVë,k˜Mb[²ùìLvûv/{LSCsªf¬f‘fæqÍƱàð9ٜJÎ!Î Î{--?-±Öj­f­~­7ÚzÚ¾ÚbírííëÚïup,õ:m:÷u º6ºQº…ºÛuÏê>Ócëyé õÊõéÝÑGõmô£õêïÖïÑ7046l18cð̐cèk˜i¸Ñð„á¨Ëhº‘Äh£ÑI£'¸&î‡gã5x>f¬ob¬4ÞeÜk<abi2ۤĤÅä¾)͔kšfºÑ´ÓtÌÌÈ,ܬجÉìŽ9՜kža¾Ù¼Ûü…¥EœÅJ‹6‹Ç–Ú–|˖M–÷¬˜V>VyVõV׬IÖ\ë,ëmÖWlPW››:›Ë¶¨­›­Äv›mßâ)Ò)õSnÚ1ìüì ìšìí9öaö%ömöÏÌÖ;t;|rtuÌvlp¼ë¤á4éĩÃéWgg¡só5¦KË—v—Sm§Š§nŸz˕åîºÒµÓõ£›»›Ü­ÙmÔÝÌ=Å}«ûM.›É]Ã=ïAôð÷XâqÌ㝧›§Âóç/^v^Y^û½O³œ&žÖ0mÈÛÄ[à½Ë{:>=eúÎé>Æ>ŸzŸ‡¾¦¾"ß=¾#~Ö~™~üžû;úËýø¿áyòñNÁ彁³k™¥5»/>B Yr“oÀòùc3Üg,šÑʝZú0Ì&L֎†Ïß~o¦ùLé̶ˆàGlˆ¸i™ù})2ª.êQ´Stqt÷,Ö¬äYûg½Žñ©Œ¹;Ûj¶rvg¬jlRlc웸€¸ª¸x‡øEñ—t$ í‰äÄØÄ=‰ãsçlš3œäšT–tc®åÜ¢¹æéÎ˞w<Y5Y|8…˜—²?åƒ BP/Oå§nMò„›…OE¾¢¢Q±·¸J<’æV•ö8Ý;}Cúh†OFuÆ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»#‹S

  • Ah 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

  • x00x00 MVP
    edited March 2013

    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.

Sign In or Register to comment.