mx.net.FileReference - the 'size' property returns -1
- Dominant language
- ActionScript
- Stars
- 380
- Forks
- 120
- PR merge metrics
- No merged PRs in 30d
Description
Built for the target 'JSRoyale'.
For the selected file, the 'name' property is correct, but the 'size' property returns -1.
If I'm correct, the responsible code is in org.apache.royale.file.beads.FileModel.as:
public function get size():Number
{
COMPILE::SWF
{
return _data.size;
}
COMPILE::JS
{
return blob ? blob.length : -1;
}
}
It seems that something is wrong with the '_blob' property.
Any ideas?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in org.apache.royale.file.beads.FileModel.as and inspect the JS implementation of the size getter, especially how blob is populated for the selected file. Reproduce the issue with the JSRoyale target and verify that size reports the selected file's actual size instead of -1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100