Skip to main content

Bug Tracker

Side navigation

#7271 closed bug ()

Opened October 21, 2010 07:35PM UTC

Closed November 11, 2010 11:09PM UTC

Chome doesn't copy the uploaded file ref

Reported by: droberts@dimagi.com Owned by: droberts@dimagi.com
Priority: undecided Milestone: 1.5
Component: manipulation Version: 1.4.2
Keywords: clone security file Cc:
Blocked by: Blocking:
Description

If you have an <input type="file" /> and you .clone() it after someone selects a file to upload, I would expect the ref to that file to be copied as well. This is the case in FireFox but it seems not to be copied Chrome.

Attachments (0)
Change History (3)

Changed October 21, 2010 07:38PM UTC by SlexAxton comment:1

component: unfiledmanipulation
keywords: → clone security file
owner: → droberts@dimagi.com
status: newpending

I believe this is a security feature of chrome. I don't think there's anything we can do about it?

Did it work in some previous version of jQuery, or in another library?

Also please provide a jsFiddle or jsbin link to show exactly how to reproduce this.

Changed October 21, 2010 08:36PM UTC by anonymous comment:2

Replying to [comment:1 SlexAxton]:

I believe this is a security feature of chrome. I don't think there's anything we can do about it? Did it work in some previous version of jQuery, or in another library? Also please provide a jsFiddle or jsbin link to show exactly how to reproduce this.

Here's a jsbin link that shows what I mean.

http://jsbin.com/opehu3/6/

Choose a file, and then hit "Copy File Input". In FireFox the copied input also has the selected file; in Chrome, it's blank.

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:3

status: pendingclosed

Automatically closed due to 14 days of inactivity.