Jump to content

SayeyeZohor

uniGUI Subscriber
  • Posts

    215
  • Joined

  • Last visited

Posts posted by SayeyeZohor

  1. 42 minutes ago, Hayri ASLAN said:

    Hi,

    So you have some code behind the login.

    Can you open console and check if you have any error. 

    i Found that error
    @Sherzod

    This Error For under code while form is start after mainForm Show ...

    function window.afterrender(sender, eOpts)
    {
        var me = sender;
        
        me.dd = new Ext.dd.DDProxy(me, {
            delegate: me.id
        });
        
        me.dd.disable = function() {
            //
        };
        
        me.dd.enable = function() {
            //
        };
        
        me.dd.afterDrag = (function() {
            me.updateLayout()
        });
        
        Ext.onReady(function() {
            me.dd.setHandleElId(sender.owner.UCP_Header.id);
        });
    }

     

    old function is not this problam

    function window.afterrender(sender, eOpts)
    {
        var me = sender;
        
        me.dd = new Ext.dd.DDProxy(me, {
            delegate: me.id
        });
        
        me.dd.afterDrag = (function() {
            me.updateLayout()
        });
        
        Ext.onReady(function() {
            me.dd.setHandleElId(sender.owner.UCP_Header.id);
        });
    } 


    image.thumb.png.b7710a20a6e3f8bc25b144b32636a70f.png

  2. i will seprate package suffix with this type:

     

    Image:		jpeg,jpg,gif,png,bmp,ico,tif,tiff 
    Text:		ppt,pdf,txt,rtf,doc,docx,xls,xlsx,acs,bas,cls,mdb,prj 
    Compres:	zip,rar,7z,sql,tar,gz,7zip,iso,ape,bin,cab 

    NOT this

    jpeg
    jpg
    gif
    png
    bmp
    ico
    tif
    tiff 
    ppt
    pdf
    txt
    rtf
    doc
    docx
    xls
    xlsx
    acs
    bas
    cls
    mdb
    prj 
    zip
    rar
    7z
    sql
    tar
    gz
    7zip
    iso
    ape
    bin
    cab 

    image.thumb.png.33ad8ba148fbd3d8c5b0b5e18f3ac463.png

  3. 13 minutes ago, Farshad Mohajeri said:

    Fixed.

    Try this for now:

    
      for I := Low(Files) to High(Files) do
        if Assigned(Files[I].Stream) then
        begin
           // your code
        end;

     

    This isn't Solution, you will fix that in future version of UNIGUI?

  4. 3 hours ago, Farshad Mohajeri said:
    
    for I := Low(Files) to High(Files) do
    begin
    // your code here
    end;
    
      TUniFileInfoArray = array of TUniFileInfoClass;
    
      TUniFileInfoClass = class
      public
        property Success: Boolean read FSuccess write SetSuccess;
        property CacheFile: string read FCacheFile write SetCacheFile;
        property FileName: TFileName read FFileName write SetFileName;
        property Stream: TFileStream read GetStream write SetStream;
      end;

     

    tnx
    but new bug
     

    I upload a file the first time and it's not a problem, but the problem starts when I upload two or more files, and next time I want to upload fewer files, this time high(files) has the previous value in memory and gives access voliation

     

    @Sherzod

    @Farshad Mohajeri

  5. 55 minutes ago, Sherzod said:

    Please explain 

    I want to get the number of uploaded files and rename the file and store it in a folder on the server and save it in the database.


     

        DestFolder:=UniServerModule.StartPath+'UploadFolder\';
        DestName:=DestFolder+ExtractFileName(UniFileUpload1.FileName);
        UniLabel4.Caption:='File Name: '+UniFileUpload1.FileName;
        CopyFile(PChar(AStream.FileName), PChar(DestName), False);

    @Sherzod please help me ...

  6. 18 minutes ago, Sherzod said:

    Hi,

    If I understand you correctly, on MultiCompleted event.

    High(Files)+1 

    procedure TUniOpinionRequestFrm.UniFileUpload1MultiCompleted(Sender: TObject;
      Files: TUniFileInfoArray);
    var
      I: Integer;
    begin
      for I := 0 to High(Files)+1  do

    Do you mean?

  7. hi @Sherzod

    i use UNIGUI 1506 and use new uniuploader  with multiply upload

    How to check how many files uploaded is a few?

    Take a Sample to work with the new version of UNIGUI 1506

     

     

    UniFileUpload1.Files[2].FileName

    image.png.fc301a8b4d44f7304a07c27a2d6aaebc.png

×
×
  • Create New...