Skip to main content
Participant
November 10, 2019
Question

JSON files cannot be uploaded to share point

  • November 10, 2019
  • 2 replies
  • 785 views

cannot upload the published file to share point.

error message "cannot read from the source file or disk"

file type :Json file 

already enabled Json file type on sharepoint

how to solve that?

 

 

This topic has been closed for replies.

2 replies

Inspiring
November 12, 2019

I don't know if and how SharePoint can be made to accept json files, but here's a workaround to eliminate json files from the output, so one would not run into the issue in the first place. It's what I do whenever I have to publish a non-responsive project to SharePoint. Mind that I never tried with a responsive project - don't know if there's any difference when it comes to json and the possibilites to avoid them.

  1. Make sure all Slides are set to 'Quality: High (24-bit)'.
    This should assure tyhat there'll actually be no json files in the output but one.
  2. Publish as HTML5 to your local computer as usual
  3. Go to the location where you published the output to, find 'index.html' and open it in a text editor
  4. Serch for the string '.json'. It should just find one instance in a line that goes like this:
    var imagesJSONFiles = [ 'dr/imgmd.json' ];
  5. Edit 'dr/imgmd.json' to 'dr/imgmd.js' and save
  6. Go to 'dr' folder, find the file 'imgmd.json' and rname it to 'imgmd.js'
  7. Upload the whole package to SharePoint and link to 'index.html'

Works for me. You might want to have a look at those two posts as well:

https://community.adobe.com/t5/Captivate/Best-way-to-publish-captivate-videos-on-SharePoint/td-p/10241242

https://community.adobe.com/t5/Captivate/Why-doesn-t-my-HTML-Export-work-on-my-local-computer/td-p/9607061

RodWard
Community Expert
Community Expert
November 10, 2019

The error message would tend to indicate that Sharepoint does NOT allow JSON files.  If you have just enabled JSON, did you need to restart the server for the change to take effect?  (Your server administrator should be able to tell you.)

 

Either way, Sharepoint is