0

We are uploading SWF files in a document library in SharePoint Online.

When we try to download the files using complete URL like https://org.sharepoint.com/sites/SiteCollection/Shared Documents/Folder/file.swf, it gives message in browser 403 FORBIDDEN.

Also, when we try to use "Copy Link" feature to copy the URL of the SWF file it gives URL as https://org.sharepoint.com/sites/SiteCollection/_layouts/15/download.aspx?UniqueId=SomeUniqueID rather than folder path.

I found some articles like this and this which seem to suggest that we cannot upload SWF files in SharePoint Online. But I am not able to find any official article from MSDN regarding this.

How can I allow users to download files stored in SharePoint document library?

1

Recent improvements in SharePoint Online have removed the limitations on types of files that can be added. There are currently no known types of files that cannot be added.

The SWF file type in SharePoint document library won't work unless the site allows you to run custom script. By default, custom script is blocked on user-created sites that have Office 365 groups.

Go to SharePoint Online Admin center -> Settings -> Custom Script, select “Allow users to run custom script on self-created sites.” It can take up to 24 hours for the change to take effect. To allow custom script immediately, run the following script:

connect-sposervice https://tenant-admin.sharepoint.com

Set-SPOsite https://tenant.sharepoint.com/sites/TeamSite1 -DenyAddAndCustomizePages 0

Reference:Types of files that cannot be added to a list or library

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.