Uploading Javascript Files Into a Sharepoint Library
I have an "htm" file that I need to upload to a Sharepoint Document Library. It is a simulation file with voiceover. This "htm" file is associated with javascript files [.js] image files [.png, .swf] and audio files [.mp3]. My question is are there any potential risks or issues associated with the Sharepoint platform in uploading in particular javascript files into a Sharepoint Library. Does this cause any problems or programatic conflicts.
March 24th, 2010 4:57pm

If all you are uploading to SP is the htm file, then when you open the file none of the files associated with it will be available to you (because all SP is doing is opening the htm file). If you are able to change the links in the htm file to being one level down from where the htm file is located (meaning thus in a folder in that document library) then you can upload the associated files to the folder. Provided no file type is on the banned file type list that upload will work. Even there what is being opened from within SharePoint is the htm file and *it* then is opening files that are located in a folder of SharePoint. FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com Complete Book Lists (incl. foreign language) on each site.
Free Windows Admin Tool Kit Click here and download it now
March 24th, 2010 5:12pm

I uploaded my htm file and associated javascript, image and audio files succesfully. Everything works. My major concern is whether Microsoft Sharepoint recommends for or against uploading "javascript" files into a Sharepoint Document Library. JS files do not appear to be a default blocked file type within Sharepoint. But I imagine that there may be concerns that if it is not a trusted sources the js file could run code with potentially dangerous content. I would like to know whether there are any Sharepoint views or documentation regarding this topic. I could not easily locate any (as of yet).
March 24th, 2010 6:46pm

In the SharePoint Views, the Js files is the same with other files and it is OK to upload them to the document library. However, there is portential security issue is these files cannot be trusted. and I think this is a more general security topic. for your issue, the file should be safe because it should be uploaded by a trusted source and the source code should be well examined. -lambertSincerely, Lambert Qin Posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
March 26th, 2010 12:10pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics