File manager issues/questions and how to edit text files

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
9/5/2012 7:49:50 AM
Gravatar
Total Posts 537
feet planted firmly on the ground

File manager issues/questions and how to edit text files

  1. I'm finding that the File Manager cannot preview .txt files. Clicking the preview button does nothing.  Have I got bad config or is this as intended?
  2. In File Manager, trying to download a file with a .html extension throws an error that the resource cannot be found. Is this a bug? If I rename the same file to .txt I can download it fine.
  3. I need to allow a user to edit some text files stored below the media folder.  Is there any way of enabling editing in situ? Or does the user have to download the file, make the edits and then upload again?  Clearly mojoPortal has the tools in its armoury to allow editing text files, because the skin manager can edit css files in situ.  I'd like to use the same thing from within the File Manager. Any other ideas welcome!
9/5/2012 9:55:37 AM
Gravatar
Total Posts 18439

Re: File manager issues/questions and how to edit text files

It only supports image preview. Its based on QTFile and that image preview ability was already built into the js for QTFile it isn't something I built and I don't expect to add text file editing to it in the near term so download/edit/upload is the way to go. You could always build a custom feature for editing txt files. mojoPortal doesn't use .txt files for anything so I have not implemented something for that and don't expect to as I'm focused on the things we do use and need. 

I'll have to look into the error with .html files and see if I can replicate it and solve it, but I suspect the browser is trying to open it directly since it is an extension handled by the web browser.

9/5/2012 2:09:49 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: File manager issues/questions and how to edit text files

OK thanks Joe.  I'm also finding quite a few issues with uploading - some file types just don't seem to upload (e.g. .css), yet the page thinks an upload is in progress if I click anything else. 

It apppears that QtFile hasn't been updated since March 2009 and is version 1.01 BETA ... time to look around for an alternative if this is not being actively developed?

9/5/2012 2:20:05 PM
Gravatar
Total Posts 18439

Re: File manager issues/questions and how to edit text files

QTFile is just javascript and therefore just UI code, the upload is handled by server side code. Really it wasn't intended to use file manager to manage css files, probably you just need to add css as an allowed upload extension in web.config/user.config so that the server side code allows uploading. There is nothing broken nor needing update in the QTFile code that I know of at this point though I have not yet looked into the issue with .html files it doesn't sound like a javascript error.

You can copy the AllowedUploadFileExtensions setting from web.config into user.config and add any extensions that you want to be able to use.

Hope that helps,

Joe

9/5/2012 2:26:24 PM
Gravatar
Total Posts 537
feet planted firmly on the ground

Re: File manager issues/questions and how to edit text files

OK thanks for the tip - I'll try it soon.   It would be nice to get some UI feedback when server code croaks.

You must sign in to post in the forums. This thread is closed to new posts.