Author Topic: Upload von .tif und .bmp Dateien funktioniert nicht...  (Read 14677 times)

0 Members and 1 Guest are viewing this topic.

Offline mueller77

  • Newbie
  • *
  • Posts: 16
    • View Profile
Upload von .tif und .bmp Dateien funktioniert nicht...
« on: September 03, 2002, 03:35:53 PM »
Hallo

Ich habe ein Problem mit dem upload von tiff/bmp Dateien.
Kann mir vielleicht jemand sagen wie die Dateien media/bmp.html und media/tif.html aussehen müssen? Ich denke dort  müsste das Problem liegen. Ich habe folgendes versucht:

Im Admin Tool unter "Erlaubte Datei-Typen" ist folgendes eingetragen:
jpg,png,gif,aif,au,avi,mid,mov,mp3,mpg,swf,wav,ra,rm,zip,pdf,bmp,tif,exe

In der Datei includes/upload_definitions.php sind folgende Einträge vorhanden:
$mime_type_match['tif'] = array("image/tiff");
$mime_type_match['tiff'] = array("image/tiff");
$mime_type_match['bmp'] = array("image/x-ms-bmp");

Die Datei media/bmp.html sieht so aus:
<!-- Template file for BMP Files -->
{media_icon}<br />

und ich habe es auch mit diesen Einstellungen versucht:

media/bmp.html:
<!-- Template file for BMP Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />
Wobei diese Version wahrscheindlich nicht funktioniert, da ein Browser ja keine .bmp Dateien darstellen kann.

Ich bekomme dann nach dem hochladen einer .bmp Datei folgenden Fehler: "Fehler beim Upload der Bild-Datei: Logo300dpi.bmp: Die Datei hat ein ungültiges Format (bmp, image/bmp)."
Warum hat das Bild ein ungültiges Format? Es ist schliesslich ein BMP! Beim Tiff upload fast das gleiche Problem. Fehler: "Fehler beim Upload der Bild-Datei: Logo300dpi.tif: Die Datei hat ein ungültiges Format (tif, application/octet-stream)".
Nun ja, dann habe ich mir gedacht dann versuchs doch mal mit dem upload von .exe Dateien. Mit .exe klapp es einwandfrei... Ich möchte aber soooo gerne tiff und bmp uploaden können - Sniff... :cry:

Vielleicht hat ja jemand mit der Konfiguration von tif/bmp upload Erfahrungen gemacht und kann mir da weiterhelfen... Der upload von gif,jpg und anderen Medien ist kein Problem.

Greets Dave

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #1 on: September 03, 2002, 03:42:46 PM »
Beim Upload der Bilddatei siehst Du den Mime-Type der Datei.

Die Datei hat ein ungültiges Format (tif, application/octet-stream)

Dieser kann bei tiff-Dateien durchaus variieren. In diesem Fall schaust Du in "inlcudes/upload_definitions.php" nach und erweiterst den entsprechenden Eintrag.

In Deinem Fall so:

$mime_type_match['tif'] = array("image/tiff", "application/octet-stream");
$mime_type_match['tiff'] = array("image/tiff", "application/octet-stream");
$mime_type_match['bmp'] = array("image/x-ms-bmp", "image/bmp");

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline mueller77

  • Newbie
  • *
  • Posts: 16
    • View Profile
So funktionierts!
« Reply #2 on: September 03, 2002, 04:14:48 PM »
Hi Jan

So funktioniert es einwandfrei... Voll Genial und thnx! Kann man den Auto-Thumbnailer (mit NetPBM) auch für bmp und tif Bilder in Anspruch nehmen oder fuktioniert das nur mit gif/jpg?

Greets Dave

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #3 on: September 03, 2002, 04:26:47 PM »
Mit 4images lassen sich leider nur gif, jpg und png Formate bearbeiten. Soweit ich weiss, kann man mit NetPBM grundsätzlich aber auch andere Formate bearbeiten.

Gruß Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline mueller77

  • Newbie
  • *
  • Posts: 16
    • View Profile
andere Formate
« Reply #4 on: September 03, 2002, 04:47:42 PM »
Hi Jan

Vielleicht hast Du ja mal Zeit um ein TIF/BMP Auto Thumbnail Creator Feature mit NetPBM einfliessen zu lassen. Was aber sicherlich nicht dringend ist.
4images läuft jetzt so richtig schön vor sich hin und ich habe soeben eine Bundle Version bei Dir bestellt. Und, ich muss Dir einfach noch sagen, dass es schon ein starkes Stück Arbeit ist ein solches Programm zu schreiben. Ist echt super gelungen!!!

Thnx also for that great support! :lol:

Greets Dave

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #5 on: March 13, 2003, 06:42:12 PM »
.
« Last Edit: August 09, 2009, 12:48:44 AM by Ernesto Taseffa »

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #6 on: March 13, 2003, 11:47:09 PM »
.
« Last Edit: August 09, 2009, 12:48:27 AM by Ernesto Taseffa »

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #7 on: March 14, 2003, 04:57:55 PM »
Can you explain the problem mor specific. Any error messages? Did you check mx_upload_size in your php.ini and your 4images settings?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #8 on: March 15, 2003, 01:48:23 AM »
.
« Last Edit: August 09, 2009, 12:48:08 AM by Ernesto Taseffa »

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #9 on: March 17, 2003, 02:42:48 PM »
.
« Last Edit: August 09, 2009, 12:47:50 AM by Ernesto Taseffa »

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #10 on: March 17, 2003, 04:01:56 PM »
Quote
As far as I understood it from earlier postings, thumbnails are not possible in the combination NetPbm and Tif files (is this correct?). But there should be still the possibility to see the image in big size - or do I miss here something?

I don't know if its generally impossible, but its impossible to do with 4images at the moment.
Note that .tif's can't be displayed in browsers.

Quote
Jan, I do not really understand what this "mx-upload size" and "php.ini" means and where I can find it

php.ini is the PHP configuration file. Most hosters do not allow customers to access the php.ini. I think yours too.
In this file you could set "max_upload_size" and "max_execution_time" to a higher values. See phpinfo() for the current values.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Ernesto Taseffa

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Upload von .tif und .bmp Dateien funktioniert nicht...
« Reply #11 on: March 17, 2003, 06:10:36 PM »
.
« Last Edit: August 09, 2009, 12:47:27 AM by Ernesto Taseffa »