why set original File Data "some" protected.you should set public or at least set a function to access #782

Open
opened 2017-05-05 03:21:07 +00:00 by orzzzli · 2 comments
orzzzli commented 2017-05-05 03:21:07 +00:00 (Migrated from github.com)

i use FileReader class to create a local data url,but i can't access original File Object,so i change your source code:file-item.class.d.ts , change protected "some" to pulic , and it worked.

i use FileReader class to create a local data url,but i can't access original File Object,so i change your source code:file-item.class.d.ts , change protected "some" to pulic , and it worked.
juntaforce commented 2017-05-09 18:28:40 +00:00 (Migrated from github.com)

Hi,
Could you please share some code about how did you reach File object??
I have same issue. I changed as public you said, but its still says "Its a constant or read only property "

Hi, Could you please share some code about how did you reach File object?? I have same issue. I changed as public you said, but its still says "Its a constant or read only property "
orzzzli commented 2017-05-10 02:09:37 +00:00 (Migrated from github.com)

you can see my blog.it use chinese but you can see the image.where to change and how to use fileReader.
http://blog.csdn.net/ligongxiang123/article/details/71201617

you can see my blog.it use chinese but you can see the image.where to change and how to use fileReader. http://blog.csdn.net/ligongxiang123/article/details/71201617
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#782