Check new extension EFineUploader http://www.yiiframework.com/extension/efineuploader/ ¶
Uploading files using ajax (without flash).
Based on http://valums.com/ajax-upload/
Installation ¶
- Extract the release file under
protected/extensions
Requirements ¶
- Yii 1.1 or above
Usage ¶
view:
<? $this->widget('ext.EAjaxUpload.EAjaxUpload',
array(
'id'=>'uploadFile',
'config'=>array(
'action'=>Yii::app()->createUrl('controller/upload'),
'allowedExtensions'=>array("jpg"),//array("jpg","jpeg","gif","exe","mov" and etc...
'sizeLimit'=>10*1024*1024,// maximum file size in bytes
'minSizeLimit'=>10*1024*1024,// minimum file size in bytes
//'onComplete'=>"js:function(id, fileName, responseJSON){ alert(fileName); }",
//'messages'=>array(
// 'typeError'=>"{file} has invalid extension. Only {extensions} are allowed.",
// 'sizeError'=>"{file} is too large, maximum file size is {sizeLimit}.",
// 'minSizeError'=>"{file} is too small, minimum file size is {minSizeLimit}.",
// 'emptyError'=>"{file} is empty, please select files again without it.",
// 'onLeave'=>"The files are being uploaded, if you leave now the upload will be cancelled."
// ),
//'showMessage'=>"js:function(message){ alert(message); }"
)
)); ?>
controller:
public function actionUpload()
{
Yii::import("ext.EAjaxUpload.qqFileUploader");
$folder='upload/';// folder for uploaded files
$allowedExtensions = array("jpg");//array("jpg","jpeg","gif","exe","mov" and etc...
$sizeLimit = 10 * 1024 * 1024;// maximum file size in bytes
$uploader = new qqFileUploader($allowedExtensions, $sizeLimit);
$result = $uploader->handleUpload($folder);
$return = htmlspecialchars(json_encode($result), ENT_NOQUOTES);
$fileSize=filesize($folder.$result['filename']);//GETTING FILE SIZE
$fileName=$result['filename'];//GETTING FILE NAME
echo $return;// it's array
}
love it
thanks
Perfect
thank you very much!
Android support
Hello,
thank you for this wonderful extension. However, if you want the uploader to work on Android Phones, you have to comment out lines 418-419 on assets/fileuploader.js. For some reason, Android browsers don't provide file size and the plugin throws FILE EMPTY error.
I will let the plugin's owner know that.
some answers
> How send to controlles some field, ID for example?
'action'=>'/controller/upload/?params1=value1¶ms2=value2',
> How can i return the filesize of the file, in order to save it in a textField plz ?
public function actionUpload() { Yii::import("ext.EAjaxUpload.qqFileUploader"); $folder='upload/';// folder for uploaded files $allowedExtensions = array("jpg"), $sizeLimit = 10 * 1024 * 1024;// maximum file size in bytes $uploader = new qqFileUploader($allowedExtensions, $sizeLimit); $result = $uploader->handleUpload($folder); $result=htmlspecialchars(json_encode($result), ENT_NOQUOTES); $fileSize=filesize($folder.$result['filename']);//GETTING FILE SIZE echo $result;// it's array }
fixed fail!
for those with failed errors, the 'action' parameter should be set this way:
'action'=>$this->createUrl("controller/upload"),
if still happens debug the call using FireBug, the upload path could be wrong (I used Yii::app()->getRuntimePath().'/')
fix error in filesize
also, the demo code uses the $result array AFTER transforming it to string, causing a 500 error!
Change the last lines to something like this:
$result = $uploader->handleUpload($folder); $return = htmlspecialchars(json_encode($result), ENT_NOQUOTES); $fileSize=filesize($folder.$result['filename']); $fileName=$result['filename']; echo $return;
allowedExtensions
Thanx, it's a great extension, but is there a way that i can disable the allowed extension? i want to take all of the extensions
Complete Event
This is a pretty useful extension, but it would be a lot better if it could come with a few events such as onComplete and ... on php.
I am using it for another model, and i want my method to be called as soon as the upload is done, I have already modified the class and added a few methods, but i think it would be great if it was by default there.
public function actionUpload() { // .. whatever // create the upload hanlder $result = $uploader->handleUpload($folder); // set the on complete event, which would be called when the upload operation is finished $result->onComplete = saveModel; // .. whatever }
param X-Requested-With is not always sent
Thanks for the extension!
I had a problem - upload failed on several browsers, e.g. Chrom, IE on Windows, Opera on Linux, but worked fine at Firefox and Chromium on Linux.
After some debugging I found that getIsAjaxRequest() check was giving the problem, returning false for problematic browsers. As appeared, $_SERVER['X-Requested-With'] parameter wasn't set for those, so instead of using 'onlyAjax' filter I use this check now in my actionUpload() method:
if(!Yii::app()->request->isAjaxRequest && !isset($_SERVER['CONTENT_TYPE'])) throw new CHttpException(400,Yii::t('yii','Your request is invalid.'));
Not sure if it's a bug or correct behavior, just hope to save some time to other developers.
Validation errors in other fields
When validation fails in some other fields, "eajaxuploader" forgets the upload list (the list disapear)
I think the extension should store that list into the Yii::app()->user session and display it if exists
to #8215
Yes, I agree, just came across this problem, some handling out of the box would be very handy for failed validations of all the form submitted.
EDITED: now I use client validation to avoid the problem
<?php $form=$this->beginWidget('CActiveForm', array( 'id'=>'article-form', 'enableClientValidation'=>true, 'clientOptions'=>array( 'validateOnSubmit'=>true, ), )); ?>
to #8199 special characters
There was a solution on a russian forum (by VovanZ) for cirilliс alphabet to use transliterate() function which is called at line 127 in qqFileUpload, e.g.
$filename = $this->transliterate($pathinfo['filename']);
getting problem with minSize on client side in IE while uploading a file ?
When i am uploading a file whose size is less than minSizeLimit, does not validated on client side in IE7,8,9 etc. How to solve this issue. It works fine in other browser.
multiple issues/problems
First at all, great widget. But I noticed two major problems.
You can't use more than one instances of this widget at the same time when you render them with renderPartial. Maybe it also doesn't work with normal render(). I never tried that.
But unfortunately it is fact that with renderPartial it simply doesn't work. (seems like some js conflicts. Firebug shows no errors but attaching events to the secound widget's parent doesn't work, unless it isn't even displayed)
The funny thing about that is that if you use the native qqFileUploader jquery plugin, it is possible to use it multiple times at the same page.
The second problem is that after the widget is successfully initialised (js domready), all html data attributes are deleted. So its nearly impossible to use it in a html5 project. (this also occurs if you use that widget in a view file which is displayed with renderPartial)
Rename File before uploading
How do I rename the file before uploading it to the location?
Sweet
Great extension which works right out of the box no problems.
Why in hell the downvotes?
i hope the bugs are fixed now.
There was lot of thumps down because earlier this one had some bugs and was not able to use it properly. thanks for the updates..
error !
{'error':'increase post_max_size and upload_max_filesize to 10M'}
why ?
How to limit file ?
I wanna to use this ext. I tried it but I don't know how to limit file. e.g 1-5 files only, how?
Works...
The extension is good and works, but is far from ideal.
Missing more options for parameterization and internationalization.
Make it a blacklist =)
well this is a very nice uploader, but i do have a request. can you make it a blacklist(list of files not allowed to be uploaded) and not as whitelist(list of files only allowed to be uploaded) or if you can make it both =)
well nice, i will be waiting for more updates soon
Multiple instances @Lo3ty (dirty-quick-fix)
I've come around bug that also found @Lo3ty and inspect widget. There was public variable $id="fileUploader" and I thought I just give widget input variable same name.. but no. It's overrided.
For quick fix you can edit widget like I do:
public function run() { $this->id = md5(rand(1,999999)); ...
it will generate random id and will not break while using multiple instances.
jQuery is better
It's good jobs, but I thinks if you use of jQuery that are better.
I don't know why you didn't use jQuery.
Not working in IE ?
Hi. I have used this extension for many of my apps.
Unfortunately I figured out that the file upload is being failed in IE (tested only IE 8).
But when I do the same in chrome or Firefox, files are uploaded properly and everything's fine.
Any suggestion ?
RE: Not working in IE ?
@riyazMuhammed Valums' Fine Uploader, which this extension is based on) should work with IE8. Please try out the demo page (http://fineuploader.com).
If it works you could grab the js file from the Github repo and update yours.
Now I haven't used this extension in production (only in Kosenka's demo) so I don't know why the extension wouldn't work with IE8.
RE: IE Issue
@bennouna. I think its not js. Its about server side.
because when I debug, I get to this:
[error] => (string) Could not save uploaded file.The upload was cancelled, or server error encountered
and I am amazed, it works without any probs on chrome, firefox, and safari !
Any Ideas ?
Edit: And still more info:
Following is piece of code of this extension.
function save($path) { $input = fopen("php://input", "r"); $temp = tmpfile(); $realSize = stream_copy_to_stream($input, $temp); fclose($input); if ($realSize != $this->getSize()){ return false; } $target = fopen($path, "w"); fseek($temp, 0, SEEK_SET); stream_copy_to_stream($temp, $target); fclose($target); return true; }
in the above function, realsize is always 0 when my browser is IE and hence returning false !
Edit : Beat it !! I found the way through this.
Basically there are 2 classes inside qqFileUploader
First of all I downloaded the new copy of qqFileuploader from github .
where it is named as php.php (copied to my extension directory and renamed to qqFileUploader.php).
Thanks a million @bennouna for guiding me to this github link.
When the object of qqFileUploader gets created (and so __constuct is called first)
my old file used to create object of qqUploadedFileXhr in both the cases and used to get above error.
But now its all right :) Thanks a Lot !!!!
And anybody coming across my problem, please follow the steps above :)
Thanks for the awesome extension :) You really rOcK man :)
Upload Failed
Hi guys, i guess i'm missing something, as i always get 'Failed'.
I think it's something related to the folder 'upload'. Where do i have to create it? in the root folder?
Thank you very much
RE: Upload Failed
@Giacomo you may create a folder under your application folder(I mean @ root level of your application-where you have assets, protected folders etc.., ).
say you have upload folder in this structure xampp/htdocs/myapp/upload
then you may just have to give "upload/"
And double check if this folder "upload" is writable.
Still any problems ? then elaborate and try providing error you see in console of your browser.
submit parameters along with the file - setParams not working
Hi,
for anybody, who wants to submit parameters along with the uploaded file, following should work:
'onSubmit'=>'js:function(file, ext){ var del=$("#delete-previous-checkbox").is(":checked") ? 1 : 0; this.params.delete = del; }',
Then on server, you can see in global GET['delete'] = 1 or 0.
Lubos
Undefined index: filename ERROR
Anybody can help me?
I am getting this error:
Undefined index: filename
protected/controllers/SiteController.php(122)
...
$fileSize=filesize($folder.$result['filename']);//GETTING FILE SIZE
...
IE says Failed
IE says Failed, but the file is uploaded! any idea?
Thanks
Get Filename
Hi, inside the handleUpload function, i've renamed the file before save it.
But inside onComplete,
'onComplete'=>"js:function(id, fileName, responseJSON){ alert(fileName); }",
the fileName displayed is the original one, not the changed one.
How to retrieve the new filename assigned before saving? Thank you
EDIT: solved with
'onComplete'=>"js:function(id, fileName, responseJSON){ alert(responseJSON['filename']); }",
YES IT WORK!!!
Great extension!
Thank you very much!
uploads to root only
hi,
upload works fine but all the images uploaded gets saved in the root. though i have set the path to upload folder and its writeable.
what cud be the issue??
@Giacomo
I tested in IE9 - everything works fine
@vasudev
Show your code
uploads to root only
@kosenka : it worked. the folder was set to '/upload/'. i removed the 1st / and it worked.
not sure why it made a difference.
@vasudev
It's wonderful. But if you just look at the example code, then your error would not occur
uploads to root only
yes, right.. thanks anyways.. great extn...
keep up the good work!!
CSRF token could not be verified
Hi
when I set the config/main.php 'enableCsrfValidation' => true the uploader not working and display to me CSRF token could not be verified
How to solve this without set 'enableCsrfValidation' to false?
Thanks
progress bar or loader icon
Hi, is it possible in somehow to add a loading bar or a fake animated icon during the uploading time?
Thanks in advance
getting error while uploading
when i am uploading a file it is getting the error that it is failed Tulips.jpg0.6MBFailed can any one help me
syntax error
in documention usage must write:
'allowedExtensions'=>array("jpg"),
instead:
'allowedExtensions'=>array("jpg");
Disable drug and drop
Hi,
is there a way to disable the drug and drop functionality? Thank you!
multiple set to false?
Hi,
I am trying to use this extension to upload just 1 file? I tried with:
'config'=>array(
'action'=>Yii::app()->createUrl('popups/HandleUpload), 'allowedExtensions'=>array("png", "jpg"), 'sizeLimit'=>10*1024*1024,// maximum file size in bytes 'minSizeLimit'=>1*1024,// minimum file size in bytes 'debug'=>true, 'multiple'=>false, )
but it seems it's not working like this? Is there a way to limit this to only 1 file?
Thanks
Increase post_max_size .. 10mb
_ edit: FixIf you get the error: Inrease post_max_size .. upload_max_filesize to 10mb, you need to adjust your php.ini settings.. even if your settings are higher
my post_max_size and upload were both much higher, I actually had to decrease the settings.
Currently, they both have to be 10mb_
Is anyone else getting this alert when trying to upload files? I have found the location to fix the issue, but I found it odd that nobody else has had the same problem.
Here is my view file code.
<?php $this->widget('ext.EAjaxUpload.EAjaxUpload', array( 'id'=>'uploadFile', 'config'=>array( 'action'=>Yii::app()->createUrl('shirt/upload'), 'allowedExtensions'=>array("jpg", "jpeg", "png"),//array("jpg","jpeg","gif","exe","mov" and etc... 'sizeLimit'=>10*1024*1024,// maximum file size in bytes 'minSizeLimit'=>1024,// minimum file size in bytes //'onComplete'=>"js:function(id, fileName, responseJSON){ alert(fileName); }", /* 'messages'=>array( 'typeError'=>"{file} has invalid extension. Only {extensions} are allowed.", 'sizeError'=>"{file} is too large, maximum file size is {sizeLimit}.", 'minSizeError'=>"{file} is too small, minimum file size is {minSizeLimit}.", 'emptyError'=>"{file} is empty, please select files again without it.", 'onLeave'=>"The files are being uploaded, if you leave now the upload will be cancelled." ), * */ //'showMessage'=>"js:function(message){ alert(message); }" ) )); ?>
works well Thanks!
After fixing the typo in the description and upping post_max_size it works great. Thanks for sharing (:
@StephenMiracle
I had same issue as you did in http://www.yiiframework.com/extension/eajaxupload/#c12019
Found post_max_size was set to 8M upped that a bit and it fixed.
The qqFileUploader.php script checks server file sizes ro compare with you settings and rejects if not compatible, EVEN if your file size is less that those, here's the code that does it:
private function checkServerSettings(){ $postSize = $this->toBytes(ini_get('post_max_size')); $uploadSize = $this->toBytes(ini_get('upload_max_filesize')); if ($postSize < $this->sizeLimit || $uploadSize < $this->sizeLimit){ $size = max(1, $this->sizeLimit / 1024 / 1024) . 'M'; die("{'error':'increase post_max_size and upload_max_filesize to $size'}"); } }
type error
change
'allowedExtensions'=>array("jpg");
with:
'allowedExtensions'=>array("jpg"),
i have an error on online site because permission
that is error is response when i upload file this error is happen on online site
PHP Error [2]
tmpfile() has been disabled for security reasons (/home/aqar4/public_html/protected/extensions/EAjaxUpload/qqFileUploader.php:12)
this error happen in function save as i need what is permission i need to enable it to solve this problem and this tmpfile function is not in disable_function in php.ini or i need can i replace function saveas with another function dont use tempfile to solve this problem
Upload Failed.
Hi, it doesn't work for me.. I've create a new controller called Image, with index and upload actions. Copy/Pasted VIEW portion of the code into /protected/views/image/index.php and modified createUrl('controller/upload') to createUrl('image/upload') and changed the minimum and maximum sizes to match the server's configuration.
then I copied the controller portion into /protected/controllers/ImageController.php, with no modifications.
when running, I get the red upload button, select the image, I see the upload process going up to 100% and then it just adds "Failed" after the filename and stops...
what's wrong? help please.. thanks in advance..
Re: Upload Failed.
@MiroK: try to lower the size limit to e.g. 1 mb, both in the view and in the controller
Re: Upload Failed
MiroK, make sure your upload path is correct as well. (e.g. "images/uploads/" is what I used to make it work)
Re: Upload Failed
Thanks guys, I added app()->getBaseUrl() to the path is it works now.. Probably got lost in the folders..
Now, is there any way to push the uploaded image to the form as a preview, before submitting the form? Can I call a JS script from actionUpload() right after the image is uploaded? Or is there any other way?
Re: Upload Failed
I'm sure it's possible with JS.
You could probably use a renderPartial method which pulls the image.
Something like this perhaps:
http://www.yiiframework.com/wiki/49/update-content-in-ajax-with-renderpartial/
EDIT: I looked through the code once more, you could probably push the "preview" exactly like the "success" message or "failed" message.
The relevant code is in EAjaxUpload/qqFileUploader.php, at line 143.
Re: Upload Failed.
Try to add something like this in your _form.php view:
<div class="row"> <?php echo $form->labelEx($model,'logo'); ?> <?php $this->widget('ext.EAjaxUpload.EAjaxUpload', array( 'id'=>'image', 'config'=>array( 'action'=>Yii::app()->createUrl('/associazioni/upload'), 'allowedExtensions'=>array("jpg", "jpeg", "png", "gif"), 'sizeLimit'=>2*1024*1024,// maximum file size in bytes 'onSubmit'=>"js:function(file, extension) { $('div.preview').addClass('loading'); }", 'onComplete'=>"js:function(file, response, responseJSON) { $('#thumb').load(function(){ $('div.preview').removeClass('loading'); $('#thumb').unbind(); $('#Associazioni_logo').val(responseJSON['filename']); }); $('#thumb').attr('src', '/../images/temp/'+responseJSON['filename']); }", 'messages'=>array( 'typeError'=>"{file} has invalid extension. Only {extensions} are allowed.", 'sizeError'=>"{file} is too large, maximum file size is {sizeLimit}.", 'emptyError'=>"{file} is empty, please select files again without it.", 'onLeave'=>"The files are being uploaded, if you leave now the upload will be cancelled." ), ) )); echo $form->hiddenField($model,'logo'); echo "<img id='thumb' src='/images/associazioni/".$model->logo."'>"; ?> <?php echo $form->error($model,'logo'); ?> </div>
Fork for fineuploader 3.4.1
Hi kosenka,
thanks a lot for the great plugin. I just wanted to let you know I've forked your repo on github and made some (unfortunately not backward compatible) changes to integrate with the Fine Uploader 3.4.1.
https://github.com/drcypher/EAjaxUpload
upload worked, but the status failed was given
hi, i'm figuring out what's wrong with my code, i used your extension. it's worked to upload file to specified folder. but the status "Failed" was printed:
"tbl_datasiswa.xls 62.0kB Failed"
. there's also undetected file inside the specified folder (but the files is there):
"{"error":"No files were uploaded."}"
upload big files
Hy i want to upload big files like 1gb or 2gb movie files. But it seems that it's using a lot memory to copy that file. Is there a way to do this without using so much memory. my memory limit is at memory_limit = 256M but i can upload maximum 50mb/60mb files.
thanks
@tiky
If I'm not mistaken, this is only a wrapper (Yii extension) for Ajax Upload plugin. So, you should address all questions concerning performance and filesize limits to authors of original plugin, not to the author of Yii extension.
You should also check your server (or hosting) settings and limitations. This plugin most likely uses HTTP protocol, so PHP's and Apache (server) limits / settings apply. I'm also not sure, if 256 MB of server RAM memory will be enough to handle 1-2 GB file transfers? This sounds like possible server kill.
Chuking for large file uploads
@Trejder I think the misunderstanding comes from the fact that this extension does not mention which version of the original plugin it wraps. Tinky probably saw the original plugin's docs/website and noticed that it supports chunking for large file uploads (up to 4GB). But this is for the latest version of the plugin.
I took a look around and noticed that the PHP server-side handler for the latest version of the plugin has been modified to support resume, chunking, etc., and can be found here:
https://github.com/mrCartmenez/file-uploader/tree/master/server
Of course this boils down to whether this Yii extension claims to support the latest version of the plugin or not. And in our case, it doesn't, so the truth is somewhere in the middle.
I have already created a fork of this extension on github, but never tested the big file uploads, since they seem to be supported by only late versions of browsers, as you can see here http://blog.fineuploader.com/2012/12/file-chunkingpartitioning-is-now.html
It looks like the updated php code has completely removed the XHR method and only supports chunking. I hope the above pointers will help you do your thing for now if you're not in a hurry. Otherwise I'll try to update the extension fork to see what can be supported and how, of course announcing details here so the extension author himself can have a look.
check new extension EFineUploader
@All - check new extension EFineUploader http://www.yiiframework.com/extension/efineuploader/
Differences between EAjaxUploader and EFineUploader
Can you explain, in brief, here or there, what is key difference between EAjaxUploader and EFineUploader? Is the only difference, a different library behind? Or maybe new EFineUploader offers some features that EAjaxUploader lacks?
For large files >40mb
If you cannot upload large files larger that 35mb-40mb, according to this, you have to set the content type of the request header to "multipart/form-data" instead of "application/octet-stream".
File to change:
assets/fileuploader.js(1355)
xhr.setRequestHeader("Content-Type", "multipart/form-data"); //xhr.setRequestHeader("Content-Type", "application/octet-stream");
foreach multi instance
Can I put widget in foreach() loop ? thanks
The reason y shows failed.
Use this code,
public function actionUpload() { Yii::import("ext.EAjaxUpload.qqFileUploader"); $folder=Yii::app() -> getBasePath() . "/../images/uploads/";// folder for uploaded files $allowedExtensions = array("jpg","png","pdf");//array("jpg","jpeg","gif","exe","mov" and etc... $sizeLimit = 1 * 1024 * 1024;// maximum file size in bytes $uploader = new qqFileUploader($allowedExtensions, $sizeLimit); $result = $uploader->handleUpload($folder); $fileSize=filesize($folder.$result['filename']);//GETTING FILE SIZE $fileName=$result['filename'];//GETTING FILE NAME $result=htmlspecialchars(json_encode($result), ENT_NOQUOTES); echo $result;// it's array }
this code should be added after getting file name:
$result=htmlspecialchars(json_encode($result), ENT_NOQUOTES);
a problem
hi all ... i've a problem with this ext that it always give me 'failed' after submiting
i want too add images to this directori : D:\software\xampp\htdocs\yii\demos\image\upload
this is my action in PostController:
public function actionUpload() { Yii::import("ext.EAjaxUpload.qqFileUploader"); $folder=Yii::app()->request->baseUrl . "/upload/";// folder for uploaded files $allowedExtensions = array("jpg","png","pdf");//array("jpg","jpeg","gif","exe","mov" and etc... $sizeLimit = 1 * 1024 * 1024;// maximum file size in bytes $uploader = new qqFileUploader($allowedExtensions, $sizeLimit); $result = $uploader->handleUpload($folder); $fileSize=filesize($folder.$result['filename']);//GETTING FILE SIZE $fileName=$result['filename'];//GETTING FILE NAME $result=htmlspecialchars(json_encode($result), ENT_NOQUOTES); echo $result;// it's array echo 'ok'; }
and this is my view code :
<?php $this->widget('ext.EAjaxUpload.EAjaxUpload', array( 'id'=>'uploadFile', 'config'=>array( 'action'=>Yii::app()->getBaseUrl().'/upload', 'allowedExtensions'=>array("jpg"),//array("jpg","jpeg","gif","exe","mov" and etc... 'sizeLimit'=>10*1024*1024,// maximum file size in bytes //'minSizeLimit'=>10*1024*1024,// minimum file size in bytes //'onComplete'=>"js:function(id, fileName, responseJSON){ alert(fileName); }", //'messages'=>array( // 'typeError'=>"{file} has invalid extension. Only {extensions} are allowed.", // 'sizeError'=>"{file} is too large, maximum file size is {sizeLimit}.", // 'minSizeError'=>"{file} is too small, minimum file size is {minSizeLimit}.", // 'emptyError'=>"{file} is empty, please select files again without it.", // 'onLeave'=>"The files are being uploaded, if you leave now the upload will be cancelled." // ), //'showMessage'=>"js:function(message){ alert(message); }" ) )); ?>
tanx in advance and sorry for this amature question ....
image upload
can u tell me how to show image in view form
upload image
help in display image .good work
nice
nice extension help me a lot. thanks
FineUploader licensing
Keep in mind, that even though FineUploader (which stands behind this extension) is open source, it still require you to pay license fee, if you're going to use it in a commercial product!
Here is a cite from FineUploader FAQ:
The intent of our licensing model is to make Fine Uploader freely accessible to free open-source projects, while collecting money from commercial users. We put a good amount of time, resources, and money into this project, and the financial sustainability of the library is important in order for us to continue to provide quick support, new features, and maintenance. There are even more reasons for purchasing a license on our homepage.
So, think twice, before you start using this extension in any non-free project or you may quickly run into some serious licensing issues!
Single file upload
Is it possible for not allow multiple uploads?
Error on Unix
I use this extension work fine in windows but when I deploy to Unix server not work properly,
I think this is a case sensitive problem, how can I trace this error?
and I try change directory separator like this
//$dir = 'contents'.DIRECTORY_SEPARATOR.'drawings'.DIRECTORY_SEPARATOR; // NOT WORK $dir = Yii::app()->basePath.DIRECTORY_SEPARATOR.'contents'.DIRECTORY_SEPARATOR.'drawings'.DIRECTORY_SEPARATOR; // NOT WORK TOO
all problem same error, anyone help me to solve this.
Thanks in advance.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.