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

13

Comments

  • -----------------------------24078761718515 Content-Disposition: form-data; name="name" 100x100sampleicon.gif -----------------------------24078761718515 Content-Disposition: form-data; name="file"; filename="100x100sampleicon.gif" Content-Type: image/gif GIF89ad�d�÷�����ÿÿÿ(T1):*(O)¦´¦(L &a#.h,22E1g~f”€‹ŸŠ—ª–E >P-!T'W#>,P)_w]YjX< : 2NFX T PI$S-f'"M+Y&)T%2O/@b=GgD`‡\jf¼ŠDYBn…l›»˜yw"]FK%Z$W+b$D&amp;T %Q)[#+]$8s1$D :^5Q€KOtJ:T7YxUQiN1 EdSJ9 KSN#Y!P O"Q#R(\$S!M#R%T*^!%T&U'V )X!*Y"(W!)X"+Z#&P3k+)U"(R!-[%2b*)P#/V)=k6iarœl< 6@> C 8 H.q!"S'`#UAF#O&W$P%Q(Y&R#L'S(T%N)U *V!._%+W#1]((L!8g/,M&)F#Iy@X‹O|¨t†¯~¡Î™LV ?N#]N T#Y!QJ*e L!N%W<"N"M#P%U%R"K'T&Q@2k&+[ !G)V*U %J+T",R#4Z,Ds9`’T<J D QFH8 L!N"O$U'W$P"M!I/i %R(Y&S-`'T(U&Q)V+W,Y .]"*U-Y"(OÁâ¸;@5 !V< #W MAJE"O(\$T"M&W%R&S+^'T(U#K+X%K:p)3d%.V"5LA'T%O E'P-Z&M)P+U+SO9%Q.Wn«S=| ÿÿÿ!þG44�!ù��ÿ�,����d�d��ÿ�ÿ H° Áƒ*\È°¡Ã‡#JœH±¢Å‹3jÜȱ£Ç CŠI²¤É“(Sª\ɲ¥Ë—0cʜI³¦Äl²ü s%¤=Uΐ4¥¥I9‹šü†‰ˆÒ’²Ê!“ð”äµrƜTY •'6¶†<X b=º(TÏØÙ´ƒ4ÂøÀÃ.7zð€+Ðϋæ€ÙÂåË^¾ÿVLº‰‡ .„· þ÷�„‹NÞÂy2³,~0ÙKaÏIp$¹<1OA¡ "cr‰1vBK,"f‹ >|ñ)2’¡,†@‘–U~ èPcíÊgã0”"£ `°øÿ¹#åՉ‘ìi¹G3€ðä_pö…l$ÿԈ¨")šH“š eÀÁ|¢M<ьR“ ˆh…Ê0#çô�ƒta….~ÔÑEÔ!ä8ÉÔaŒ&Áô‚K5ÍQˆ<ðÀ}RB¶T’ÏÁ|òK¶ŠÄzPÁ$ó0uãL%ÈÐ$‚xуWèñÇ~ ´ÆÜT¡Ì'ŸàêÆzʼnò ¶gÜÃ+M-Ôaˆ£°ÀÒG…(bÝ@OÜá‡6ã|¢‰Á¬`#o8AO0Í\yË-i$i7„1X3/S ±‘‹8¿˜cÌ/…l‰A8`r‡<¾(³I'†è¦Ó7p¡E\҇|èB‹A-øÿaÌçhã9µ´8˜ÄÃËá³Ã6¹¼PT_|a†b Ãða(¼pN:|Ê"QG'|l ƒ˜!È#Jmp :ò ¦„bò„#N:£„Ò ÿDð‡'žt¢„i,ÑAUJPQؤh^ƒ °@àS‡2£Œ€ÂØÙ°&lt;ë~ô(KH¨”#•´»Gðî`B?Ì1—P P`�@B èÄ%4áSà!"h@K’àƒ¹8„ '¸‚5ȇAÔàBûÇö &Œ9�Å@Ú`^ðbN°ÇDµ HÀ Ð0Dœ "*ÿLJL*1u(:1ŒT$b oøÄ&H¶‰a$+c B �$�ð–ƒè°„4Ž‘‡a°B…!Á&渉 `X�.갉,äÂËÀ†@öE5Á8h×ËBð$ÙPÆĎ1VÌà ‘�,œÀI'˜â1p‡.ð¡ tàΌɞÀƒ¼ôÀr†A"ƒ‚HBÁDŠÁ KêB 8@'0i@nèÆ<€aiÄÂ5qñЍ=À‚p¡„‚ ¿)Å ,0+„ ¦ˆ3’qŽwĂËàE.xaŠ\lB:9ÿi˜àgРÀ�‚³¨` wÐDXWI3´¨eèD/ä¹ YlcäHÇ LP \8$'È#‰"\t‡à:CÀÉK!.r¸ƒ8ˆ)x‘ÀQbéÐ L ‰J„” 1f±;„‘HÐÇ"Áš¨a{ˆxWC�ËÄ&>€ü¡§ÐW=8@œhbÁøÃ-dQ n\•غsü#ˆÀ”€;Ёt𼨀.€ÀKq@T€Bð4�„ ü@ )è ۚ”1eð¢4`„@f!Ždâ‰FèE*¡‰Ùÿ€ àpCDãâ2T1âú` 0œHÈÀ\æ¾âÝ`B¶—+¸£.P„/’aŽK $›Ç"¡‰UìÁ oPî?Ò@ B(áÉàS(NQŒcè·HÆ3¨pÅœ$ºP¡QèK0v ŠMP¢–*3Hq!|èrÀ/á?@–Žˆƒ7¢!_TâÏ@D&gt;¤A jèâ­è¯"ЇªNìÆÒxª�QèAîØE*lCü嶸О±qxJ„¿b‚9A f¬‚ —€C-°atèb£ø1öƒ@Zàƒ(þˆW¤ÿZ¸ƒ:AƒEÀåˆ-rA;dmå€ÄþŒr”£µ°F*v‡WÜCšÐ…#Rù’|À ­’‚Dl¤Á•À&qŒË±’h÷Fð¤>Ã<¨áŽmtáØD®+¹° zP0ð@a "·ø‡ $¡ê>lA¨¿‘mPáàF.„!^ÀA 2hkQd ƒA¹HwºÑ† <Àð×$Tqv˜AÅE+î‡<¬à0¥_ñ‹Y4"ÜЄ!*LZÌ"V3PE9˜ {lci혼ÿáH±ÄÛdœE4Q^Ä´ÿ°1ˆáb”Cöà€ SPìb2ÿ $‡9(a `†#Ñg<#ÙX¹%–.Žw4‚ ,ð\_àr„²XùȺÖۑ[ȐpÄHqd£ö„o¹±‡0tÁ ¶°Åž c] E€¡ pØb€¼;˜qvL¢ j˜…$anØsÍØ¢`[à! &ìð?ˆh˜Ç.va PÀã Jhƒ³#¡ˆ&DCÞkƒ.ôŒaTóHD:œQŒb联€¥eƒFˆ ‚èÄ&rÀŠTÜâ“xÃA7F¼¸k utC�<ÿ6jÝAèa»Í¨Å-ü“|  hžÜüŠNÌÁÃÿ‡(ª OèBdÖ�ð0èzÀ Ý�ð@ Õp¡ÐÁ ʐ?àC0Q° €° ”° j uàQp  Ã@;ûÀjÿ0.8y ÿ@ ”`kð`sîp`6\pT*‘E± ÷`ö0ÔБý@¶ó0ñoðð€ ð€»� 90dT` )„ 4@±ÒÒ ¨ˆ@€Ö° K x Ö@µpO‘¬€`Øð@ÒU%`Û0F€&lt;l@FÀr€˜` ¹ ZP �/5xPŽ@c?pÕ A!9ÿ0n°G ƒEqo à Áp@H8'd¨‘�‹0µt ´°¿ë ?áƒÅˆO·Œ n㌡,(1 ëÀ‰Ö(͸bÞXþÐqáøþ åØú°„é؎îøŽð.�; -----------------------------24078761718515--</pre>
    
  • @vrijvlinder , does this plugin work for you ?

  • vrijvlindervrijvlinder Papillon-Sauvage MVP

    Yes and no however, I have modified it some, based on the update of creators of the api.( I get don't have a problem using the basic to upload, I did not use this plugin because I like to do stuff manually I guess.)

    I added some extra files from the website download into the plugin which I just felt would do something beneficial. So I ftp the edited version with some extra files and also added them in the addJSFile. I got drag and drop as a result I think however when I upload the file path seems to be corrupt . Some where along the way when it is Parsed I would guess. It shows the name of the file and info about weight etc. and the link to insert. When I try to insert I get a place mark in safari is a little question mark. When I try the img link in firebug it also takes me to the place mark , the place mark is also in the uploads folder, it should save the name I think.

    But I don't get the 0 byte upload. The file has the the correct name and size. It is not a thumbnail though it is the file icon image hmmmm....the plot thickens

    Maybe there is more that I need to look at . I will add this plugin to another forum and compare behavior. I am attaching the download so you can look at what is in there and compare to your installation. Or @x00 can come up with a magical solution ....

  • x00x00 MVP
    edited March 2013

    It is best not mess with the plugin, I think this could cause some confusion and further issues, I'm trying to diagnose this issue.

    Forks are fine but you support them, they are not my concern.

    grep is your friend.

  • Well, if you can install it in another forum , and successfully send images, could you link the ZIP file so i can try it out ? lol .. im not too great at this coding stuff. I can edit things that people recommend, but I dont know how to follow the functions just looks like coding to me

  • vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited March 2013

    I am still learning too, it took me 6 months to get this far and I still have a long way to go, Let x00 figure it out better so he can update it when the solution is found.He is right I should not add to the confusion, if I get it to work elsewhere I will post it for sure. For now I like my own mod but can't support it coz It is an experiment as of yet.

  • peregrineperegrine MVP
    edited March 2013

    @x00 said:

    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.

    Totally agree - you would think there would be more (positive and negative) feedback from people who download and use the plugins. But that would be like herding cats, and asking to much - its "alot of work" for many forum owners to provide feedback ( theme of plugin works or has bugs) about something they might use that was downloaded from the addons :). Most of the feedback is "change this, I want this".

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 422422 Developer MVP

    inherantly ppl use this plce like a supermarket, run in , grab what they want and run out lol .. problem is they forget to pay pmsl

    There was an error rendering this rich post.

  • I have no problem asking questions about something if it doesn't do something i expect it to. Just makes sense if you think a plugin might be a useful tool and it doesn't work to ask about it.

    I thought maybe it was an issue with something server side, but apparently it is not

  • @BrandonP said:
    I have no problem asking questions about something if it doesn't do something i expect it to. Just makes sense if you think a plugin might be a useful tool and it doesn't work to ask about it.

    I thought maybe it was an issue with something server side, but apparently it is not

    I'm not sure yet

    in default.php after

     public function PostController_MultiUpload_Create($Sender){
        header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
        header("Cache-Control: no-store, no-cache, must-revalidate");
        header("Cache-Control: post-check=0, pre-check=0", false);
        header("Pragma: no-cache");
        $Sender->DeliveryMethod(DELIVERY_METHOD_JSON);
        $Sender->DeliveryType(DELIVERY_TYPE_VIEW);
    

    can you put

    throw new PlUploadErrorException(var_export(array($_REQUEST,$_FILES, file_get_contents("php://input", FALSE,NULL,0,4096)),TRUE), 0, __FILE__);          
    

    this will cause it not to work but it is useful for debuging.

    You can turn plupload,js back to how it was.

    Let me know what happens. I can't promise to be on top of this this week, I have other priorities that come first.

    grep is your friend.

  • x00x00 MVP
    edited March 2013

    one more thing to try a fresh install for vanilla with no plugins, then install FileUpload and fresh PlUpload and give it a go.

    grep is your friend.

  • Okay, Im uninstalling the forum right now. Just going to take about 1 hour because when you uninstall apps on godaddy for some reason it takes forever to remove and install them. I'll report back and let you know what i figure out

  • no need to uninstall, just create fresh one.

    grep is your friend.

  • Oh, whoops. lol. Its alright. My site is brand new and has no discussions or members right now anyways. I am installing the plugins back in right now.

  • BrandonPBrandonP New
    edited March 2013
    Response Headersview source
    Cache-Control   private, no-cache, no-store, must-revalidate
    Connection  close
    Content-Type    application/json
    Date    Mon, 25 Mar 2013 16:40:02 GMT
    Expires Sat, 01 Jan 2000 00:00:00 GMT
    Last-Modified   Mon, 25 Mar 2013 16:40:36 GMT
    Pragma  no-cache
    Server  Apache
    Transfer-Encoding   chunked
    X-Garden-Version    Vanilla 2.0.18.4
    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  489856
    Content-Type    multipart/form-data; boundary=----pluploadboundaryp17mh6nejm1d8j1ln8129u1ert1suuc
    Cookie  wp-settings-time-1=1364228625; wp-settings-1=editor%3Dhtml%26hidetb%3D1%26libraryContent%3Dbrowse; wordpress_logged_in_85672006ef55582711787d9bf9e5e3d2=Brandon%7C1364952184%7Cf6dee8a53096a325e143a57b6584d3a1; PHPSESSID=6e9baf97cf7c0b761182219d03d03a47; Vanilla=1-1366820807%7C8d2b7284c87f98f24cf7291b06e0d793%7C1364228807%7C1%7C1366820807; Vanilla-Volatile=1-1364401607%7Cc9b49685616037eddacd776023898202%7C1364228807%7C1%7C1364401607
    DNT 1
    Host    safeoperator.net
    Pragma  no-cache
    Referer http://safeoperator.net/vanillaforums/index.php?p=/post/discussion
    User-Agent  Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
    {"Code":0,"Exception":"array (\n  0 => \n  array (\n    'p' => '\/post\/multiupload',\n    'name' => 'IMG_3109.jpg',\n    'wp-settings-time-1' => '1364228625',\n    'wp-settings-1' => 'editor=html&hidetb=1&libraryContent=browse',\n    'wordpress_logged_in_85672006ef55582711787d9bf9e5e3d2' => 'Brandon|1364952184|f6dee8a53096a325e143a57b6584d3a1',\n    'PHPSESSID' => '6e9baf97cf7c0b761182219d03d03a47',\n    'Vanilla' => '1-1366820807|8d2b7284c87f98f24cf7291b06e0d793|1364228807|1|1366820807',\n    'Vanilla-Volatile' => '1-1364401607|c9b49685616037eddacd776023898202|1364228807|1|1364401607',\n  ),\n  1 => \n  array (\n    'file' => \n    array (\n      'name' => 'IMG_3109.jpg',\n      'type' => 'image\/jpeg',\n      'tmp_name' => '\/home\/content\/86\/10747586\/tmp\/phpMNe3Rh',\n      'error' => 0,\n      'size' => 489528,\n    ),\n  ),\n  2 => '',\n)"}
    ------pluploadboundaryp17mh6nejm1d8j1ln8129u1ert1suuc Content-Disposition: form-data; name="name" IMG_3109.jpg ------pluploadboundaryp17mh6nejm1d8j1ln8129u1ert1suuc Content-Disposition: form-data; name="file"; filename="IMG_3109.jpg" Content-Type: image/jpeg ÿØÿà�JFIF������ÿá2@Exif��MM�*�����������’�������˜��������������´�������¼(�������1�������Ä2�������à�������ê������ô‡i������ ���$Canon�Canon EOS DIGITAL REBEL XSi�� ü€��'� ü€��'Adobe Photoshop CS3 Windows�2013:03:24 15:29:18�ê��������������������������������������������������������������������������������������������������
  • BrandonPBrandonP New
    edited March 2013

    now when I try to upload, it is saying Failed to open upload directory [100]. This is with a fresh install, only fileupload and PLUpload plugins installed

    Edit:
    after I uploaded a file using the fileupload app, then switching back, i no longer get the failed to open error. Its inserting the images now, but they are still showing up messed up.

    Link:

    http://safeoperator.net/vanillaforums/uploads/FileUpload/33/bac1b4fd16ae9cb62a857a41392849.jpg

  • have you set the permissions for upload directory?

    grep is your friend.

  • I think they are automatically set. I will double check them to make sure they are setup properly

  • i enabled uploading and downloading for every user except for Guest, no change

  • I also changed the Upload directory to 777

Sign In or Register to comment.