OdontonetEs Posted March 2 Posted March 2 Good morning, I have several forms in the application that use the TUniFileUpload control. This was one of the first implementations of the project, and now when I try to use that functionality, I'm getting this error: And apparently the error occurs internally in the control, since the UniFileUploadButton1Completed event never fires. unigui version: 1.95.0.1606 Quote
Sherzod Posted March 2 Posted March 2 Hello, Could you please clarify how the application is deployed? Are you running it as Standalone, ISAPI (IIS), or Windows Service? Quote
OdontonetEs Posted March 2 Author Posted March 2 The application is distributed on Linux with HyperServer; it would be a HyperServer binary, and HyperServer itself is a Linux service. The strange thing is that this used to work, although it's worth noting that an update to the UniGUI version I mentioned was performed. Thanks. Quote
Administrators Farshad Mohajeri Posted March 2 Administrators Posted March 2 2 hours ago, OdontonetEs said: The application is distributed on Linux with HyperServer; it would be a HyperServer binary, and HyperServer itself is a Linux service. The strange thing is that this used to work, although it's worth noting that an update to the UniGUI version I mentioned was performed. Thanks. Hi, So the issue started after the update? Quote
OdontonetEs Posted March 2 Author Posted March 2 Yes, as I mentioned before, I didn't have any more options. I used it a long time ago; I think I had version 1579 before, if I remember correctly. It's strange that it worked for me in a Windows project, but it gives me that error in Linux. Do you have any other alternatives for uploading one or more files? Quote
Administrators Farshad Mohajeri Posted March 2 Administrators Posted March 2 File upload works correctly under Linux. Can you send me a simple test app ? BTW, please try with latest build 1610 first to see if the problem persists. Quote
OdontonetEs Posted March 3 Author Posted March 3 Good morning, well, if another project has worked and the error has been found, I'd like to mention that it was in the onhhtpCommand event of the server module. Every time it fired, it tried to get a body if the method was POST, since I was using internal requests. That was what was preventing the upload command from executing correctly. The solution was to use it only for certain internal URLs, not globally. As always, thank you for your time. Regards Quote
Sherzod Posted March 3 Posted March 3 Thank you for the update. That makes sense — handling POST requests globally in OnHTTPCommand can interfere with file uploads. Glad you found the cause and resolved it. Quote
Administrators Farshad Mohajeri Posted March 3 Administrators Posted March 3 3 hours ago, OdontonetEs said: Good morning, well, if another project has worked and the error has been found, I'd like to mention that it was in the onhhtpCommand event of the server module. Every time it fired, it tried to get a body if the method was POST, since I was using internal requests. That was what was preventing the upload command from executing correctly. The solution was to use it only for certain internal URLs, not globally. As always, thank you for your time. Regards You can use "Handled" parameter to selectively choose among HTTP commands which you want to process. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.