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

Hi, Nearly yes.

Yes, select file, then I add path& name to memtable. And uniform has a "Send" buton. When enduser click this button, file(s) 's path&name will get from memtable and file(s) start to upload.

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...