close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Invalid file type error when uploading doc and pdf

Thread began 10/26/2009 10:20 am by info97301 | Last modified 11/11/2009 12:02 am by henk303241 | 58707 views | 10 replies |

info97301

Invalid file type error when uploading doc and pdf

Hi
Have installed HTML Editor. Image and swf upload both work perfectly, but when I try to upload pdf or doc files, I get an 'invalid file type' error. Looking though the config files, these seem to be allowed, so is there some other setting required?

Thanks

Sign in to reply to this post

john.carter13796

same here

For the record I have the same problem.

Sign in to reply to this post

anonymous

Are you guys referring to the Advanced File Manager or the the basic one?

Brian

Sign in to reply to this post

Jimmy Wu

When setting up the upload manager, make sure you set up the Advanced File Manager by creating a connection to a database. To setup the Advanced File Manager, open up the HTML Editor wizard (by clicking on an existing one and hitting edit or inserting a new instance) and click on the customize next to Global File Upload Settings. In the HTML: Site Settings dialog, make sure to set a connection in the Advanced File Manager section.

Using the simple upload manager, uploading pdfs and docs will throw that error.

Sign in to reply to this post

info97301

Why the difference?

Hi Jimmy

If I click on 'browse server' I can upload a doc (and presumably other formats too) from there, but if I click the upload tab then 'send to server' after selecting a file, I get the error message. However, if I choose the latter route for uploading an Image or Flash movie, I don't get any error. Seems inconsistent and likely to confuse the end user.

Having managed to upload a file, I now get the error when I try to update the page.

Warning: Cannot modify header information - headers already sent by (output started at /home/...../public_html/adminsection/admin/pagesform3.php:4) in /home/...../public_html/adminsection/admin/pagesform3.php on line 58

which I didn't receive yesterday!

Cheers

Chris

Sign in to reply to this post

Jimmy Wu

This error is usually caused by having whitespace between php tags on that page. Make sure there is no whitespace between your php tags. Here is an example:
?>

<?php

You'd want it to look like this:
?>
<?php

Thanks for bringing that to our attention. We have logged a bug for this and this should be fixed in a future release.

Sign in to reply to this post

anthony355121

Im having the same issue - can upload images via image link - cannot upload documents via link manager. Ive checked code and no space b/c php tags ...

Sign in to reply to this post

Jimmy Wu

Do you have a link to a page that I can see this behavior?

Sign in to reply to this post

henk303241

I have the same error here, no pdf....

I found a workaround:
In the file HTMLeditor/editor/filemanager/connectors/php/config.php
Change line 141 into: $Config['AllowedExtensions']['Image'] = array('bmp','gif','jpeg','jpg','png','pdf','doc') ;

That'll do the trick... seems a bug :).

Sign in to reply to this post

Jimmy Wu

Thanks for bringing this to our attention. I'm glad you are able to find a workaround for this.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...