Closed Bug 664512 Opened 13 years ago Closed 13 years ago

Can't upload attachments: files[f].fileName is undefined

Categories

(addons.mozilla.org Graveyard :: Add-on Builder, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Builder 0.9.7

People

(Reporter: clouserw, Assigned: smcarthur)

References

Details

To reproduce:

1) https://builder-addons.allizom.org/addon/1000134/latest/
2) Click [+] next to Data
3) Pick a file and click upload

See this in error console:
Error: files[f].fileName is undefined
Source File: https://builder-addons.allizom.org/media/jetpack/js/Sidebar.js
Line: 541


I'm using a nightly
This works in fx 4.0.1
Target Milestone: Builder 0.9.6 → Builder 0.9.7
This still happening in the nightlies?

Even if so, this is a browser bug...
I think we concluded the browser API changed
If this is the case, I'll need a link to the new API.

https://developer.mozilla.org/en/DOM/FileList currently says:

// loop trough files
for (var i = 0; i < files.length; i++) {

    // get item
    file = files.item(i);
    //or
    file = files[i];

    alert(file.name);
}
Assignee: nobody → smcarthur
ok, this has been changed in master.

apparently, Fx7 is dropping support for it's non-standard .fileName property of files. We now access the standard .name property.

https://github.com/mozilla/FlightDeck/commit/e7d142777e99317961e7ed69777585bde9edfecc
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Verified FIXED using both Firefox 5, and nightlies on Windows/Mac.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.