Jump to content

How to use TUniFileUpload like TOpenDialog


Freeman35

Recommended Posts

Hello,

I need Get file name(s) then upload manual.

Why I need: I need mail send form, I did this. but I wanna file attachment too. For this, I need make a file list first (On client side) when user wanna send mail, then first upload files to server then attach file(s) and send mail.

Why I have to upload file directly first? This is style is bandwidth killer. I wanna make list first then I'll upload if I want.

How to do this?

regards.

Link to comment
Share on other sites

Maybe rename extantion of zip to any then extract. But I didn't try. And I'm still try my app on my server. Its not on hosting. If I'm not wrong, you can use "tar" file on unix.

TUniFileUpload can select file and upload it, I wanna get file name enduser selected file. then when I want upload this. Why I can not do this easy thing?

Link to comment
Share on other sites

Hello,

First step

   if TOpenDialog.Execute then begin
     if not MEMTable.Active then MEMTable.Open;
     MEMTable.Append;
       MEMTable.FieldByName('Name').AsString := ExtractFileName(TOpenDialog.FileName);
       MEMTable.FieldByName('Path').AsString:= TOpenDialog.FileName;
     MEMTable.Post;
   end;

Second step;

 While not MEMTable.EOF do begin
  TUniFileUpload....??????? (MEMTable.FieldByName('Path').ASString); If I upload file(s) no metter howto upload. :)
  MEMTable.Next;
 End;

hehe, much better colonial language :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...