mime type issue? can't view ftp'd office files and pdf
Category: File Management
Hi. I've uploaded office files (PPTX, XLSX), PDF's, and a TXT to my InMotion "public_html" directory in my personal ftp space. I then attempt to display them using http://delta-vega.com/. However, I am unable to open or save them using IE 9 and Windows 7 on my home laptop, except for the TXT file. At work, I have no problem with IE 7 and Windows XP. A tech at InMotion support said I have to change something with my mime types. Is this right, or what exactly do i have to do? An example would be delta DASH vega DOT com SLASH annotated_references.pdf
Thanks for posting your question. I'm sorry you are having issues with embedding documents. I'm more than happy to assist you.
There is no way to display PowerPoint presentations and Excel spreadsheets in a web browser natively. However, you can use Google Docs and an iFrame to embed a PowerPoint or Excel spreadsheet in a webpage. You'll need to create a webpage to display the iframe, but we'll walk you through the steps below.
<li>Upload the Powerpoint/Excel document to your account using <a ferh="/support/ edu/cpanel/cpanel-file-manager/using-file-manager-in-cpanel">cPanel File Manager</a> or<a ferh="/support/website/file-management/getting-started-guide-ftp"> FTP</a></li><p><a class="std_ss" href="http://www.inmotionhosting.com/support/images/excel/ppt_1.jpg"><img alt="ppt_1" src="http://www.inmotionhosting.com/support/images/excel/ppt_1.jpg" /></a></p>
<li>Create a new HTML page in your file manager account</li>
<li>Open the newly created page with "<strong>code editor</strong>" in cPanel File Manager</li>
<p><a class="std_ss" href="http://www.inmotionhosting.com/support/images/excel/ppt_3.jpg"><img alt="ppt 3" src="http://www.inmotionhosting.com/support/images/excel/ppt_3.jpg" / /></a></p>
<li>Add the following code to the page:</li>
<p class="code_block"> <iframe src="http://docs.google.com/gview?url=http://your-domain.com/path_to_powerpoint.ppt&embedded=true" style="width:900px; height:600px;" frameborder="0"></iframe></p>
<li>Now, replace the <strong>http://your-domain.com/path_to_powerpoint.ppt</strong> with your actual path to your powerpoint or excel spreadsheet</li>
In our case, it will be:
<li>Save the changes to the file</li>
<li>Now, test the page out in your web browser</li>
You should see something similar to the screenshot below:
<a class="std_ss" href="http://www.inmotionhosting.com/support/images/excel/ppt_4.jpg"><img alt="ppt 4" src=http://www.inmotionhosting.com/support/images/excel/ppt_4.jpg" / /></a>
I hope this helps! If you need further assistance please feel free to <a ferh="/support/community-support">ask a question on our support center</a>.
Like this Question? Tweet
Related ArticlesHow to Zip and Unzip Files using Windows 7
How to enable SSH through WHM
Best practice for naming files in Linux
View FTP uploads with archived raw logs
Changing the Document Root for Your Domain