Jump to content

UniFileUpload


Moegamat Alexander

Recommended Posts

Hi

How do i get the file path from UniFileUpload

I have the following Mysql Store Procedure... I have hard coded the directory path ... but I would to get the path from from the loader

CREATE DEFINER=`root`@`localhost` PROCEDURE `ProcUpdDocs`(IN `StaffNo_in` varchar(10), Fname_in varchar(35))
BEGIN
insert into xfiles (staffno,filenames) values(StaffNo_in, Fname_in); /* Log file - will be removed */
 update gch_staffdocs
set gch_staffdocs.DocImage=LOAD_FILE(concat('c:/temp/',FName_in))
   where gch_staffdocs.StaffNo = staffno_in;

END

============== The Complete event looks like this ===============

    FileNam.Caption:='File Namex: ' +'c:\temp\'+ UniFileUpload1.FileName;
    UniMainModule.prUploadDoc.parambyname('Staffno_in').AsString :=
                   UniMainModule.tbPersonellStaffNo.AsString;
    UniMainModule.prUploadDoc.parambyname('Fname_in').AsString :=
                   UniFileUpload1.FileName;
    UniMainModule.prUploadDoc.execute;

At the moment its works with hardcoded path... but i want to use the path from Uploader..

Your assistance will be highly appreciated

Regards

Moegamat

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...