View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [T#1086] Bad Content-Type when download file in 3.3.0 - ProjeQtOr

Prochaines Sessions

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)
 

13 mai 2025 (10h30-12h)

5 juin 2025 (16h-17h30)

 
 

Planifiez avec ProjeQtOr

14 et 15 mai 2025 (9h-12h30)

18 et 19 juin 2025 (9h-12h30)

 
 

Administrez avec ProjeQtOr

20 et 21 mai (9h-12h30)

25 et 26 juin (9h-12h30)

 

 

 

[T#1086] Bad Content-Type when download file in 3.3.0

More
30 Avr 2013 11:35 - 30 Avr 2013 12:07 #1 by vdeverre
Hi.
I have install 3.3.0 from 3.2.

When I download file, my browser do not show the default application to open it.

The problem is the Content-Type is bad.
The content-type is: Content-Type application/force-download; name="file_1"
and must be: Content-Type application/force-download; name="myfile_original.xls"

Content-type contains database field documentversion.fullName and must be documentversion.fileName

Can you fix it ?
Last edit: 30 Avr 2013 12:07 by vdeverre.

Please Connexion or Create an account to join the conversation.

More
30 Avr 2013 11:51 #2 by vdeverre
I found the problem :woohoo:
To fix it, edit the file tool/download.php

line 26
orginal: $name = ($obj->fullName)?$obj->fullName:$obj->fileName;
fix: $name = ($obj->fileName)?$obj->fileName:$obj->fullName;

line 33
orginal: $name = ($obj->fullName)?$obj->fullName:$obj->fileName;
fix: $name = ($obj->fileName)?$obj->fileName:$obj->fullName;

Please Connexion or Create an account to join the conversation.

More
30 Avr 2013 12:01 #3 by babynus
You're right.
Change in V3.3 is not acurate.

Document version name should be :
- documentversion.fileName for old versions (before V3.3)
- documentversion.fullName for new versions (after V3.3)

it should also be configurable to download either with uploaded filename (default before V3.3) or formated version reference (default after V3.3)

Ticket #1086 recorded

Babynus
Administrator of ProjeQtOr web site

Please Connexion or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.034 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.