Skip to main content
Solved

Filename mismatch after uploading a file with the web GUI

  • December 4, 2020
  • 1 reply
  • 61 views

Johan van Eijsden
Captain
Forum|alt.badge.img+6

I ran into a problem uploading files with the web GUI (2020.2.20 and earlier as well).

To explain the problem let’s say that we want to upload a document with the filename Test.txt (content: This is version 1). The destination of the uploaded file is the file system. The document is also registered in the table bijlage (column: bijlage, domain: bestand_link, control: file link).

Uploading the document for the first time is successful. No problems here.

But now the user has created an updated version of the file with the filename Test.txt (content: This is version 2). Het decides to delete the previous record from the table bijlage and creates a new record and uploads the updated file Test.txt again.

Because the original file was not deleted from the web server, the upload results in a filename with an adjusted filename: Test_1.txt. The strange thing is, that the upload control still shows the original filename Test.txt and shows the wrong content.

 

 

Of course I could delete the file from the file system when deleting the record from the table bijlage. But it is strange that somehow the filename has been changed to Test_1.txt but this is not passed to the control. Is this a bug, or am I doing something wrong? Is there a way to overwrite the original file?

Best answer by Edo Spijker

Hello Johan,

This is definitely a bug and i would advice creating a tcp issue.

Edo Spijker

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

1 reply

Forum|alt.badge.img+1
  • Moderator
  • 89 replies
  • Answer
  • December 10, 2020

Hello Johan,

This is definitely a bug and i would advice creating a tcp issue.

Edo Spijker


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings