mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve #322
This commit is contained in:
parent
41e794f684
commit
4a5f3b901d
1 changed files with 9 additions and 14 deletions
11
vendors/jua/jua.js
vendored
11
vendors/jua/jua.js
vendored
|
|
@ -46,16 +46,11 @@
|
||||||
*/
|
*/
|
||||||
getDataFromFile = oFile =>
|
getDataFromFile = oFile =>
|
||||||
{
|
{
|
||||||
let
|
return oFile.size
|
||||||
iSize = oFile.size || 0,
|
|
||||||
sType = oFile.type || ''
|
|
||||||
;
|
|
||||||
|
|
||||||
return (sType && iSize)
|
|
||||||
? {
|
? {
|
||||||
FileName: (oFile.name || '').replace(/^.*\/([^/]*)$/, '$1'),
|
FileName: (oFile.name || '').replace(/^.*\/([^/]*)$/, '$1'),
|
||||||
Size: iSize,
|
Size: oFile.size,
|
||||||
Type: sType,
|
Type: oFile.type,
|
||||||
Folder: '',
|
Folder: '',
|
||||||
File : oFile
|
File : oFile
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue