milton luiz Posted January 30, 2017 Posted January 30, 2017 How to get the path of a "download" folder by programming in unigui How to get the path of a "download" folder by programming in unigui HowHow to get the path of a "download" folder by programming in unigui?
Sherzod Posted January 30, 2017 Posted January 30, 2017 Hi, What do you mean? Maybe do you mean uploadFolder ?!
mhmda Posted January 30, 2017 Posted January 30, 2017 You can save uploaded files where you want, it is in your back end code.
milton luiz Posted January 30, 2017 Author Posted January 30, 2017 I would like to know how to find the path of the user's downlod folder when the action is performed to save a report in dpf on the user's computer using unigui. in my computer: "C: \ user \ milton \ download \ relteste.pdf On users' web computers "C: \ ??????? \ download \ relteste.pdf I would like to know how to find the path of the user's downlod folder when the action is performed to save a report in dpf on the user's computer using unigui. in my computer: "C: \ user \ milton \ download \ relteste.pdf On users' web computers "C: \ ??????? \ download \ relteste.pdf
Sherzod Posted January 31, 2017 Posted January 31, 2017 Hi, If I understand correctly you, do you want to get the user's path where were saved the downloaded files?! If yes, it's impossible I guess and why you need it ? Best regards.
milton luiz Posted January 31, 2017 Author Posted January 31, 2017 I have a unigui web form that allows the user to download PDF file and generate the PDF for payment as per the code below, saving directly in the folder "DOWNLOADS" without showing anything to the user, this code already does. My problem is that each user will have a different path to the "DOWNLOADS" folder so I need to get the path to join with the name of the PDF file and save it in the downloads folder of the user's computer. UniMainModule.frxPDFExport1.FileName: = name + '.pdf'; UniMainModule.frxPDFExport1.DefaultPath: = 'C: \ Users \ Milton \ Downloads'; UniMainModule.frxPDFExport1.ShowDialog = false; UniMainModule.frxPDFExport1.ShowReport: = false; UniMainModule.frxPDFExport1.ShowProgress: = false; UniMainModule.frxPDFExport1.OverwritePrompt: = false; UniMainModule.frxRelBoleto.PrepareReport (); UniMainModule.frxRelBoleto.Export (UniMainModule.frxPDFExport1);
Administrators Farshad Mohajeri Posted January 31, 2017 Administrators Posted January 31, 2017 You can not save a file on a remote computer.
Wilton Ergon Posted March 17, 2017 Posted March 17, 2017 You are thinking like a desktop programmer, the web does not work that way, you already thought if that was possible, any virus could download files on your computer without your permission, the pdf should be generated in a folder on the server, and shown to the user with An htmlframe component, see the demos folder has several examples of reports
Recommended Posts