How to get file size when export CSV(Excel) file?

How to get file size when export CSV(Excel) file?

hsungho1023hsungho1023 Posts: 2Questions: 1Answers: 0

I need to get number of file size (e.g. 1024 KB) when export CSV file.
How can I do this?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin

    Hi,

    The only place you would be able to get that is at this point in the code. There is no callback or event there - you would need to add some custom code.

    What's the use case please?

    Allan

  • hsungho1023hsungho1023 Posts: 2Questions: 1Answers: 0

    Thanks, @allan
    I tried to insert the file info (file name, file size, etc...) into database when someone download CSV file on my website.

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin
    Answer ✓

    For that sort of thing, I'd typically suggest creating the export server-side.

    Allan

Sign In or Register to comment.