Jump to content
uniGUI Discussion Forums
ganzqgy

unigui+fineuploader

Recommended Posts

 

great:

 

from the demo feature description of the uploader:

 

  • restriction to jpeg, jpg, and txt files,
  • restriction to a maximum file size of xxx kB,

 

--> that would be great - and just missing in UniGui file uploading features (up to 0.95).

 

 

bad: 

 

$79 - Single Hostname Server (e.g. uploader.example.com) - 1 year

$480 - Single Software-as-a-Service or Single Installed Application (unlimited domain) (includes one free support request) - 1 year

 

--> so if you want to use it for commercial applications, this may pull your money out of the pocket very fast. And every year. I do not like these "single domain licences".

Share this post


Link to post
Share on other sites

<script type="text/javascript">
$(function() {
$("#uploader").plupload({
  runtimes : 'html5,flash,silverlight,html4',
  url : '{gggggg}',
  max_file_size : '1000mb',
  max_file_count: 20,
  multi_selection: true,
      chunk_size: '1mb',
      //unique_names : true, //上传的文件名是否独一
  //resize:{width:200,height:200,quality:90,crop:true},//是否生成缩略图(仅对图片文件有效)
  filters:[{title:"Image files",extensions:"jpg,gif,png"},{title:"Zip files",extensions:"zip,avi"}],
  rename: true,
  sortable: true,
  dragdrop: true,
  views:{list:true,thumbs:true,active:'thumbs'},
  flash_swf_url:'plup212/Moxie.swf',
  silverlight_xap_url:'plup212/Moxie.xap',
      init:{UploadComplete: function(up, files){
         top.ajaxRequest(top.MainForm.UniURLFrame2, 'gggggg', []);
         //alert(files.length);
      }
      }
});
});
</script>

 

 

procedure TMainForm.UniURLFrame2AjaxEvent(Sender: TComponent;
  EventName: string; Params: TStrings);
begin
  if EventName = 'gggggg' then
  begin
    // close;
  end;
end;

Share this post


Link to post
Share on other sites

unigui+fineuploader+plupload.flash.swf

 

Very nice and fun to play with, thank you. One problem:

 

If I use the fineuploader part of the demo I get an access violation on bigger files. Small files do work. can`t say exactly the limit, but I had no luck with files (JPG, BMP, PNG) above approx. 500kB. With the attached PNG example file I get an AV. Seems to be a problem in the compare function of the delphi code, I can´t figure out what exactly is the problem with this function. 

 

post-254-0-40840900-1413311006_thumb.png

 

brfc

Share this post


Link to post
Share on other sites

when upload file,

the function "compareMem" run Error.

 

iis6.1 + windows Server2008R2 64bit

 

yes, just as I remarked some posts above. I think I have a solution, just to check it next week and then I post it here.

 

brfc

Share this post


Link to post
Share on other sites

How can I get the filename of the uploaded files?

procedure TMainmForm.UnimFileUpload1Completed(Sender: TObject;
  AStream: TFileStream);
var
S:string;
BEGIN
s:= Sender as TUnimFileUpload).FileName ;
END

Share this post


Link to post
Share on other sites

Hello~

How can I Component Caption?

 

I Change Button Caption 

But.... 

Error message popup.

Message is 'The uniFormAjaxevent Method referenced by

mainForm.OnAjaxEvent has an incomptible parameter list. remove the reference?

 

plz.

Share this post


Link to post
Share on other sites

×