Text file is uploaded blank in document library

parwaze sadool 121 Reputation points
2020-12-02T13:17:10.77+00:00

I have uploaded a text file in document library. The file is uploaded but the content is blank. The size is about 5 kb only. Same was for a java .js file.
Please help

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

Accepted answer
  1. parwaze sadool 121 Reputation points
    2020-12-26T16:44:39.287+00:00

    Hi Everyone sorry for late answer and thanks for your responses.
    In fact the issue has been resolved.
    It was due to a new firewall installed by the corporate IT. The configuration was not yet done properly to allow user to communicate with SharePoint. Now it's working fine.

    Thank You All.


3 additional answers

Sort by: Most helpful
  1. Ali Choudhry 1 Reputation point
    2020-12-02T19:25:18.1+00:00

    Did you upload via drag and drop or Upload feature? If you used the upload feature, were you promoted any error?

    0 comments No comments

  2. JoyZ 18,111 Reputation points
    2020-12-03T01:55:17.49+00:00

    Hi @parwaze sadool ,

    Whether other files (such as .doc or .exe) will occur the same issue?

    I couldn't reproduce your issue per my test, I can open .txt file and .js file correctly in SharePoint document library.

    Try to delete the current file, upload again to check if you could open it successfully.

    If the issue still exists, please create a brand new document library then upload these files to compare the result.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. parwaze sadool 121 Reputation points
    2020-12-26T16:42:47.747+00:00

    Hi Everyone sorry for late answer and thanks for your responses.
    In fact the issue has been resolved.
    It was due to a new firewall installed by the corporate IT. The configuration was not yet done properly to allow user to communicate with SharePoint. Now it's working fine.

    Thank You All.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.