• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Help Me! for File.length statement getting Error...?

Engaged ,
Jan 25, 2016 Jan 25, 2016

Copy link to clipboard

Copied

Hi Everyone,

I have get the file size of image using the "file.length" comment. However this comment getting wrong result, when the file size more than 2 GB.

Please advice why the result getting 0(Zero). Thanks in advance

-yajiv

Code..

var myfile=new File("~/Desktop/Temp.psp");

alert(myfile.length);

TOPICS
Actions and scripting

Views

397

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 26, 2016 Jan 26, 2016

Copy link to clipboard

Copied

This is a known issue with our scripting interface. Only files less that 2 gig will report a correct size. We are working on a solution now.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 22, 2016 Jun 22, 2016

Copy link to clipboard

Copied

LATEST

Try the new Photoshop CC 2015.5. It should handle large files correctly.

NOTE: The ESTK is still broken. Not sure when (if ever) that tool will get an update. So make sure you have selected Photoshop in the dropdown before testing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines