I am using CGI.pm version 3.10 for file upload using Perl. I have a Perl script which uploads the file and one of my application keeps track of different revisions of the uploaded document with check-in check-out facility.
Re-creational steps:
- I have done a checkout(download a file) using my application (which is web based uses apache).
- Logout from current user session.
- Login again with same credentials and then check-in (upload) a new file.
Output:
- Upload successful
- Perl upload script shows the correct uploaded data
- New revision of the file created
Output is correct and expected except the one case which is the issue
Issue:
- The content of the newly uploaded file are same as the content of the last uploaded revision in DB.
I am using a temp folder for copying the new content and if I print the new content in upload script then it comes correct. I have no limit on CGI upload size. It seems somewhere in CGI environment it fails might be the version i am using. I am not using taint mode.
Can anybody helps me to understand what might be the possible reason?