Author Topic: Daten nicht in die Datenbank überschrieben...  (Read 21719 times)

0 Members and 1 Guest are viewing this topic.

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Daten nicht in die Datenbank überschrieben...
« on: January 30, 2007, 11:25:58 AM »
Hallo erst mal .
Will die ganze Zeit PSPimage dateien einbauen bzw. hochladen.
Nur kommt dann immer folgende Meldung:
: Fehler beim Upload der Bild-Datei: curly.pspimage
curly.pspimage: Die Datei hat ein ungültiges Format (pspimage, application/octet-stream)

Daten nicht in die Datenbank geschrieben

Habe ein HTML Datei erstellt:

<!-- Template file for PSPIMAGES Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />

und diese mit FTP hochgeladen in meinen Media Ordner des Templates das ich nutze.
Dann unter Bildereinstellungen auch das Format eingegeben….
Sogar im Upload-Defintions… siehe rote makierung……

if (!defined('ROOT_PATH')) {
  die("Security violation");
}

$mime_type_match['jpg'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['psp'] = array("image/psp", "image/psp", "image/ppsp");

$mime_type_match['gif'] = array("image/gif");

$mime_type_match['png'] = array("image/png", "image/x-png");

$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/bmp", "image/x-ms-bmp");

$mime_type_match['aif'] = array("audio/x-aiff");

$mime_type_match['aiff'] = array("audio/x-aiff");

$mime_type_match['au'] = array("audio/basic");

$mime_type_match['snd'] = array("audio/basic");

$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");

$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");

$mime_type_match['ra'] = array("audio/x-pn-realaudio");

$mime_type_match['ram'] = array("audio/x-pn-realaudio");

$mime_type_match['rm'] = array("audio/vnd.rn-realmedia", "application/vnd.rn-realmedia", "video/vnd.rn-realvideo", "application/vnd");

$mime_type_match['rpm'] = array("audio/x-pn-realaudio-plugin");

$mime_type_match['wav'] = array("audio/x-wav");

$mime_type_match['avi'] = array("video/x-msvideo", "video/avi");

$mime_type_match['mpg'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpe'] = array("video/mpeg");

$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['qt'] = array("video/quicktime");

$mime_type_match['swf'] = array("application/x-shockwave-flash");

$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['fla'] = array("application/octet-stream");

$mime_type_match['gz'] = array("application/gzip", "application/x-gzip-compressed");
$mime_type_match['rar'] = array("application/x-rar-compressed");
$mime_type_match['tar'] = array("application/x-tar");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['zip'] = array("application/zip", "application/x-zip-compressed");
$mime_type_match['sit'] = array("application/x-stuffit");

$mime_type_match['pdf'] = array("application/pdf", "application/x-pdf");

$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['ps'] = array("application/postscript");

$mime_type_match['txt'] = array("text/plain", "text/richtext", "text/rtf", "text/html");
$mime_type_match['rtf'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['rtx'] = array("text/plain", "text/richtext", "text/rtf");

$mime_type_match['doc'] = array("application/msword");
$mime_type_match['xls'] = array("application/vnd", "application/x-msexcel");
$mime_type_match['ppt'] = array("application/vnd");

$mime_type_match['csv'] = array("text/comma-separated-values");
$mime_type_match['js'] = array("text/javascript");
$mime_type_match['css'] = array("text/css");
?>


Was habe ich denn falsch gemacht ????

LG Lena

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Daten nicht in die Datenbank überschrieben...
« Reply #1 on: January 30, 2007, 11:32:07 AM »

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #2 on: January 30, 2007, 01:41:00 PM »
kann mir dies einer  auf deutsch erklären ? denn ich bin in englisch nicht gut und möcht mir mein 4 images darum nicht kaputt machen, wenn ich irgendwas falsch machen.

Danke schon mal

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Daten nicht in die Datenbank überschrieben...
« Reply #3 on: January 30, 2007, 01:45:24 PM »
$mime_type_match['psp'] = array("image/psp", "image/psp", "image/ppsp" ,"application/octet-stream");

Teste das mal...

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Daten nicht in die Datenbank überschrieben...
« Reply #4 on: January 30, 2007, 02:04:41 PM »
ich frag mich nur, wir du datein im Inter für PSP > SonyPlayStationPortible darstellen möchtest :wink:

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #5 on: January 30, 2007, 02:16:49 PM »
das ist ein Grafikprogramm. Paint Shop Pro  8O
und die endung psp. ist der abgespeicherte Dateityp der Grafik..... :wink:

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #6 on: January 30, 2007, 02:19:58 PM »
$mime_type_match['psp'] = array("image/psp", "image/psp", "image/ppsp" ,"application/octet-stream");

Teste das mal...

immer noch nicht....

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: upload_definitions.php                               *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7.2                                                *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
if (!defined('ROOT_PATH')) {
  die("Security violation");
}

$mime_type_match['jpg'] = array("image/jpg", "image/jpeg", "image/pjpeg");
$mime_type_match['jpeg'] = array("image/jpg", "image/jpeg", "image/pjpeg");


$mime_type_match['gif'] = array("image/gif");

$mime_type_match['png'] = array("image/png", "image/x-png");

$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/bmp", "image/x-ms-bmp");

$mime_type_match['aif'] = array("audio/x-aiff");

$mime_type_match['aiff'] = array("audio/x-aiff");

$mime_type_match['au'] = array("audio/basic");

$mime_type_match['snd'] = array("audio/basic");

$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");

$mime_type_match['mp3'] = array("audio/mpeg", "audio/x-mpeg", "audio/mp3", "audio/mpg");

$mime_type_match['ra'] = array("audio/x-pn-realaudio");

$mime_type_match['ram'] = array("audio/x-pn-realaudio");

$mime_type_match['rm'] = array("audio/vnd.rn-realmedia", "application/vnd.rn-realmedia", "video/vnd.rn-realvideo", "application/vnd");

$mime_type_match['rpm'] = array("audio/x-pn-realaudio-plugin");

$mime_type_match['wav'] = array("audio/x-wav");

$mime_type_match['avi'] = array("video/x-msvideo", "video/avi");

$mime_type_match['mpg'] = array("video/mpeg");
$mime_type_match['mpeg'] = array("video/mpeg");
$mime_type_match['mpe'] = array("video/mpeg");

$mime_type_match['mov'] = array("video/quicktime");
$mime_type_match['qt'] = array("video/quicktime");

$mime_type_match['swf'] = array("application/x-shockwave-flash");

$mime_type_match['psd'] = array("application/octet-stream");
$mime_type_match['fla'] = array("application/octet-stream");

$mime_type_match['gz'] = array("application/gzip", "application/x-gzip-compressed");
$mime_type_match['rar'] = array("application/x-rar-compressed");
$mime_type_match['tar'] = array("application/x-tar");
$mime_type_match['gtar'] = array("application/x-gtar");
$mime_type_match['zip'] = array("application/zip", "application/x-zip-compressed");
$mime_type_match['sit'] = array("application/x-stuffit");

$mime_type_match['pdf'] = array("application/pdf", "application/x-pdf");

$mime_type_match['ai'] = array("application/postscript");
$mime_type_match['eps'] = array("application/postscript");
$mime_type_match['ps'] = array("application/postscript");

$mime_type_match['txt'] = array("text/plain", "text/richtext", "text/rtf", "text/html");
$mime_type_match['rtf'] = array("text/plain", "text/richtext", "text/rtf");
$mime_type_match['rtx'] = array("text/plain", "text/richtext", "text/rtf");

$mime_type_match['doc'] = array("application/msword");
$mime_type_match['xls'] = array("application/vnd", "application/x-msexcel");
$mime_type_match['ppt'] = array("application/vnd");

$mime_type_match['csv'] = array("text/comma-separated-values");
$mime_type_match['js'] = array("text/javascript");
$mime_type_match['css'] = array("text/css");

$mime_type_match['psp'] = array("image/psp", "image/psp", "image/ppsp" ,"application/octet-stream");



?>

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #7 on: January 30, 2007, 02:25:28 PM »
Fehler beim Upload der Bild-Datei: angel.pspimage
angel.pspimage: Die Datei hat ein ungültiges Format (pspimage, application/octet-stream)

Daten nicht in die Datenbank geschrieben

da es eine pspimage ist muss ich es vielleicht so umschreiben ???


$mime_type_match['pspimage'] = array("image/pspimage", "image/pspimage", "image/ppspimage" ,"application/octet-stream");


Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Daten nicht in die Datenbank überschrieben...
« Reply #8 on: January 30, 2007, 03:07:57 PM »
$mime_type_match['pspimage'] = array("pspimage", "application/octet-stream");

Und so?

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #9 on: January 30, 2007, 03:13:54 PM »
auch getestet...nüscht  :(
hab dir per pm ein paar screens geschickt...

lg Lena

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Daten nicht in die Datenbank überschrieben...
« Reply #10 on: January 30, 2007, 07:22:37 PM »
naja, auch egal ob PSP ne Endung von PaintShop ist, wird auch von keinem Browser dargestellt
psd = Photoshop, ufo = PhotoImpact
noChanche!
wobei ich PSP immer als SonyPlayStationPortible kannte > wohl weil ich nicht mit paintShop arbeite

speichere die Bilder einfach als .gif / .jpg

und wer sie mit PaintShop weiterbearbeiten will, dem bietest du sie zum download an :wink:

Offline Lena

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #11 on: January 30, 2007, 07:27:20 PM »
habe ich ja *gg* habe auch nun rausbekommen, das ich die als zip anbieten kann. nur ist jetzt mein problem das das vorschaubild von dem bild beim download diese zip. icon zeigt und nicht die grafik....möchte aber gerne das das bild gezeigt wird und es man sich als zip downloaden kann....
alsooooooooooooooooooooo was muss ich nu beachten ????


glg Lena

Offline honda2000

  • 4images Guru
  • *******
  • Posts: 3.263
    • View Profile
    • Wir machen Internet!
Re: Daten nicht in die Datenbank überschrieben...
« Reply #12 on: January 30, 2007, 09:35:54 PM »
nasiehste, schon mal zwei schitte weiter!

jetzt machst du von jedem deiner Bilder in deinem Bildbearbeitungsprogramm einen Screenshot und speicherst den als gif / jpg

speicherst sie unter dem Namen die die Downloads haben, legst sie aber in /data/media und zwar in den Ordner mir der ID wie sie im data/media dazugehört

und schon wird als Vorschau das Bild und als download die Paintshop-Datei angeboten

...und das Leben ist wieder BUNT  :wink:

...weil doch psp-Dateien von gar keinem Browser sondern nur von Grafikprogrammen dargestellt werden... :wink:

Offline Nordmannen

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Daten nicht in die Datenbank überschrieben...
« Reply #13 on: August 15, 2010, 11:47:25 AM »
Seltsam
ich habe gerade ein update von version 1.7.7 auf 1.7.8 getätigt. und nachdem ich das gemacht hatte, sollten auch gleich wieder bilder hochgeladen werden - doch dann kam der schock: "Die Datei hat ein ungültiges Format (JPG, image/jpeg)"

zuvor hatte ich damit nie probleme, aber jetzt ist der salat urplötzlich da, und nach vielen stunden des suchens kann ich den fehler einfach nicht finden.

kann mir jemand sagen, was nach dem update schiefgelaufen ist?
ich verzweifle  :(


Rembrandt

  • Guest
Re: Daten nicht in die Datenbank überschrieben...
« Reply #14 on: August 15, 2010, 02:01:25 PM »
Willkommen im Forum!
...
kann mir jemand sagen, was nach dem update schiefgelaufen ist?
ich verzweifle  :(
welche datei endung hat das bildformat?

mfg Andi