Jump to content

Recommended Posts

Posted

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:

 

image.png.8fe82f3b93e37cb33c764675d79cf594.png

And apparently the error occurs internally in the control, since the UniFileUploadButton1Completed event never fires.

unigui version: 1.95.0.1606

 

Posted

Hello, 

Could you please clarify how the application is deployed?

Are you running it as Standalone, ISAPI (IIS), or Windows Service?

Posted

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.

  • Administrators
Posted
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?

Posted

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?

Posted

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

Posted

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.

  • Administrators
Posted
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.

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