Getting uploadify to work |
[eluser]Unknown[/eluser]
hey guys I implemented it using coldfusion, I got it to work but when i upload large images over a meg then if there are 10 or more files in que it gives me the IO error. The interesting part is that I get the IO error before it even tried uploading to the server. Any ideas on how to resolve it? You can view it at http://isajha.com/float
[eluser]merqlove[/eluser]
Hi guys! My solution is: Replace code in the .fla file at line 349, between: Code: if (param.script.substr(0,1) != '/') param.script = param.pagepath + param.script; REPLACE Code: var scriptURL:URLRequest = new URLRequest(param.script); RESULT: Code: if (param.script.substr(0,1) != '/') param.script = param.pagepath + param.script; Now i using CI standard Upload library with disabled file_type checking. Uploading is true work. I saw uploaded files. UPD. Growl too work. Just cleaned 'path' var from Growl onComplete. Because i have 1 folder with subfolders by file types. UPD. I have changed Upload class for check via extensions. Because server return type of any file as "application/octet-stream" because we are using flash for upload. Cheers, Alex
[eluser]jaargo[/eluser]
Can someone maybe post an example because I can't get it to work! Get successmessage but no files are uploaded. ![]()
[eluser]merqlove[/eluser]
[quote author="jaargo" date="1247148499"]Can someone maybe post an example because I can't get it to work! Get successmessage but no files are uploaded. ![]() jaargo, my swf working with the POST method. Replace in upload.php (or your own CI uploader) $_GET with $_POST.
[eluser]jaargo[/eluser]
[quote author="merqlove" date="1247166243"][quote author="jaargo" date="1247148499"]Can someone maybe post an example because I can't get it to work! Get successmessage but no files are uploaded. ![]() jaargo, my swf working with the POST method. Replace in upload.php (or your own CI uploader) $_GET with $_POST.[/quote] Really? I did a crappysolution now when linking to uploadify outside CIdir, with a querystring with the galleryid (im doing a imagecms with different galleries) But ill give yours a try again! Do I just switch to your swf and then it'll work? With upload.php in the controller aswell? **edit** Do i need to mention that i'm a newbie at this? ![]()
[eluser]jaargo[/eluser]
Could you please post your view and controller file plz? It works with your swf outside CI, but when I call it from inside the viewfile i get the IO - Error...
[eluser]merqlove[/eluser]
[quote author="jaargo" date="1247174740"]Could you please post your view and controller file plz? It works with your swf outside CI, but when I call it from inside the viewfile i get the IO - Error...[/quote] Yep My controller path is: /somefolder/uploader Code: <?php So you can put to Uploadify true path (as in your site). FOR EXAMPLE Quote:If your controller path at your site is: http://mysite.com/my_controller Same with upload folder. Quote:If your folder path: http://mysite.com/upload p.s. Quote:You need to use easy script (like uploadify), because upload library don't understand flash application/octet-stream mime. So, look to my settings.
[eluser]jaargo[/eluser]
Hmm... I'm close now! The connection is done but I get strange errorlogs: does the script add to the folderpath i precise? in script: Code: 'folder': 'galleries', Code: in log: /galleries/root/admin/index.php/upload/galleries But when i hardcode the path in the script it passas that stage but fails at: ERROR - 2009-07-10 12:45:44 --> /tmp/php1rHBm2 | ./pictures | DSC01718.JPG ERROR - 2009-07-10 12:45:44 --> You have not specified any allowed file types. but i have: Code: $config['allowed_types'] = 'gif|jpg|jpeg|png';
[eluser]jaargo[/eluser]
hmm I guess its the application/octet-stream mime. thats bringing it down now? Or do I get the whole thing wrong? CI can't get the file_ext from flash? ![]() How did you change the uploadclass? Lot's of questions going on here.. But hey, I'm learning! =) Thx a million for your help guys!
[eluser]merqlove[/eluser]
Jargo, Yep. M_K made good solution, Open up uploadify.js (un-compressed version), and made a few changes between lines 60 and 85: Code: if (flashVer >= 9) { After changes in uploadify js, try more easiest controller method: Code: <?php if (!defined('BASEPATH')) exit ('No direct script access allowed'); and change folder to: Code: 'folder': '/galleries', And add Sorry, now changed Upload library very specified for my needs, without comments or help. Cheers, Alex |
Welcome Guest, Not a member yet? Register Sign In |