Zero length file size in File Listing in Directory - REST API

Some of the files are being returned with a file size of zero when issuing the File List API from REST.

Hi Roy!

Please show example of this server response.

{“data”:[{“name”:“test1.dat”,“createdOn”:1449252765000,“publicUrl”:“https://api.backendless.com/856…458CAE00/v1/files/Temp/test1.dat”,“size”:0,“url”:“Temp/test1.dat”}…}],“totalObjects”:39,“offset”:0}

Here is another response showing the file size of 0

{“data”:[{“name”:“test1.txt”,“createdOn”:1449252765000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/Hints/test1.txt",“size”:0,“url”:“tmp/test1.txt”},{“name”:“test2.txt”,“createdOn”:1449252614000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test2.txt”,“size”:0,“url”:“tmp/test2.txt”},{“name”:“cuXuyUIJiazzjktKAmyPYuntzHcmE9VmKtLV0cj18Zavhqa0zYcuXuyUIJiazzjktKAmyPYuntzHcmE9VmKtLV0cj18Zavhqa0zY.sg1”,“createdOn”:1449252452000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/cuXuyUIJiazzjktKAmyPYuntzHcmE9VmKtLV0cj18Zavhqa0zYcuXuyUIJiazzjktKAmyPYuntzHcmE9VmKtLV0cj18Zavhqa0zY.sg1”,“size”:0,“url”:“tmp/test3.txt”},{“name”:“test4.txt”,“createdOn”:1449251942000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test4.txt”,“size”:0,“url”:“tmp/test4.txt”},{“name”:“test5.txt”,“createdOn”:1449252547000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test5.txt”,“size”:0,“url”:“tmp/test5.txt”},{“name”:“test6.txt”,“createdOn”:1449252180000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test6.txt”,“size”:0,“url”:“tmp/test6.txt”},{“name”:“test7.txt”,“createdOn”:1449252425000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test7.txt”,“size”:0,“url”:“tmp/test7.txt”},{“name”:“test8.txt”,“createdOn”:1449252801000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test8.txt”,“size”:0,“url”:“tmp/test8.txt”},{“name”:“test9.txt”,“createdOn”:1449252164000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test9.txt”,“size”:0,“url”:“tmp/test9.txt”},{“name”:“test10.txt”,“createdOn”:1449252648000,“publicUrl”:“https://api.backendless.com/85...6403-1394-1E16-FFF8-1DC...AE00/v1/files/tmp/test10.txt”,“size”:0,“url”:“tmp/test10.txt”}],“totalObjects”:39,"offset”:0}

On Backendless management console -> File service this files have not 0 size?
Maybe this files are very small and system not added size value for them.

In the Backendless console the files are being reported as 0.00KB.

I think these file sizes are being reported based upon the 1KB boundary instead of the actual byte count/size of the file.

Can the publisher also be returned in the file response?

Files that have a size less than 1024 when upload are returned with a file size of 0.

Files that have a size of 1345 bytes, have a size of 1024 when returned.

Wanted to know if this file size problem is being looked at?