Closed Bug 197076 Opened 22 years ago Closed 22 years ago

POST upload leaves file open

Categories

(Core :: Networking: File, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 183689
Future

People

(Reporter: RalfPeter.Rohbeck, Assigned: darin.moz)

Details

(Whiteboard: smb)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1; MultiZilla v1.1.34 (d)) Gecko/20030221 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1; MultiZilla v1.1.34 (d)) Gecko/20030221 After a file is uploaded via <form METHOD=POST ...><input type="file">, the local file stays open and cannot be deleted. Reproducible: Always Steps to Reproduce: 1. Open a page that has an upload function, e.g. http://geocities.yahoo.com/v/ul.html (<form ENCTYPE="multipart/form-data" METHOD=POST ACTION="http://geocities.yahoo.com/filemanager/upload"><input type="file" name="userfile" size="50">) 2. Select a file with Browse... 3. Upload the file. 4. Try to delete the local file. Actual Results: The file cannot be deleted. You get a sharing violation. Expected Results: File should have been closed so it can be deleted. After you close Mozilla, the file can be deleted.
Is this a problem: 1) Without Multizilla? 2) With a current build? This used to be a bug awhile ago, but it's been fixed for months....
Just tried again with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20030312 Same thing. However... my "local" file is on a Samba share on my Linux box. I copied the file to the local disk on my Windows box, uploaded it, and it was closed properly. With the file on a shared drive on another Windows machine, it again doesn't get closed. Ralf-Peter
darin, sounds like your file-closing hack for Windows doesn't work on SMB shares?
I know bug 126829 was fixed last summer, but I occasionally see this with recent (OS/2) trunk builds using the W3C HTML validator, about one in 30-40 (est) tries, not on shares. To workaround, I find another file to upload, which releases the lock.
wierd... moz doesn't distinguish between local files and SMB files. i'd have to setup a testcase to see what's going on. i don't have any time to investigate this at the moment, but i'll add it to my futured bug list =/
Assignee: dougt → darin
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → Future
should this go to file submission (as did bug 126829)?
Whiteboard: smb
To me this looks like a duplicate of bug 183689. How about joining forces if this is the case? :)
Depends on: 183689
*** This bug has been marked as a duplicate of 183689 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
No longer depends on: 183689
You need to log in before you can comment on or make changes to this bug.