phpCollab Community
Discuss everything phpCollab!

The forums are currently in READ-ONLY mode while we upgrade the forums.
Home » Development » Modifications » are custom mime-types possible?
are custom mime-types possible? [message #7789] Tue, 05 September 2006 22:03 Go to next message
mpjx
Messages: 3
Registered: August 2006
phpCollab guest
Hi All,

Just had some problems using the file upload/repository feature with Photoshop files. The files upload fine, download fine but something happens en route and they no longer open.

Searching the forums, I found a post from someone asking if it was possible to use the file upload feature with .eps, .psd, .ai and a host of other file formats commonly used in creative work. Someone replied mentioning requiring custom mime-types for these file types to work.

I'm just wondering if anyone can shed more light on the issue. Or if by any chance there's a mod available.

(I've searched forums and wiki for mime-type and .psd before posting)

Thanks in advance for any help.

Cheers

Martin
Re: are custom mime-types possible? [message #7792 is a reply to message #7789] Wed, 06 September 2006 06:32 Go to previous messageGo to next message
mindblender is currently offline  mindblender
Messages: 610
Registered: July 2003
Location: AZ
phpCollab contributor

Martin,

Does this happen with all .psd files or only some of them?
Re: are custom mime-types possible? [message #7794 is a reply to message #7792] Wed, 06 September 2006 06:55 Go to previous messageGo to next message
mpjx
Messages: 3
Registered: August 2006
phpCollab guest
Hi MindBlender

It happens with all .psd files

I'm not an expert in mime-types etc., just picking up on what other people have said.

There could be another issue too. Does phpC upload and download files as ASCII or binary files?

If I use a standard ftp client to transfer .psd files from my hard drive to a webserver, I have to upload them as binary files. Photoshop is unable to open a file once it's been moved as an ASCII file.

Thanks for taking an interest in this.

Martin
Re: are custom mime-types possible? [message #7796 is a reply to message #7789] Sat, 09 September 2006 05:15 Go to previous messageGo to next message
mindblender is currently offline  mindblender
Messages: 610
Registered: July 2003
Location: AZ
phpCollab contributor

Martin,

Not sure about what method PHPc uses for uploading. Something I'll have to look into.

As you mentioned, a .psd file should be uploaded using binary and not ascii. Ascii should only be used for plain text files.
Re: are custom mime-types possible? [message #8330 is a reply to message #7789] Fri, 01 February 2008 17:28 Go to previous messageGo to next message
danhamilton is currently offline  danhamilton
Messages: 7
Registered: January 2008
Location: Paris, France
phpCollab guest
Yes :

1) Add
case "psd":$type = "psd.gif";break;
to ../phpcollab/includes/files_types.php

2) Create an icone file psd.gif (16x16 pixels) in ../phpcollab/interface/icones/

3) you must have Photoshop installed to open files

4) That's all and it works fine !

Bbye
Dan
Re: are custom mime-types possible? [message #8801 is a reply to message #7789] Sun, 06 February 2011 15:55 Go to previous message
kamo061 is currently offline  kamo061
Messages: 3
Registered: February 2011
phpCollab guest
Thanks for the info....
Previous Topic: [MOD] task daily email reminders
Next Topic: [MOD] LDAP Login to Active Directory with Bind
Goto Forum:
  


Current Time: Sat May 25 03:16:05 CEST 2013

Total time taken to generate the page: 0.28592 seconds