Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bild downloaden

Empfohlene Antworten

Hallo ich hätte eine kleine Frage:

wenn ich ein Bild anzegen will mach ich nen Image Tag

<img src="bild.jpg">

ok, ich will aber neben dem Bild noch nen Link der (wenn man draufklickt) nen Download von diesem Bild startet!

Wenn ich aber

<a href="bild.jpg">download</a> mache, dann offnet er das Bild einfach in dem Browserfenster! :(

Sicher man könnte rechts Klick machen und das Bild speichern, aber es sollte nur mit den klick auf den DOWNLOAD button füktionieren.

Hat da jemand ne Idee ?

Danke mcmaiers

Warum machst du nicht einen Link auf eine andere Seite, die dann wiederum einen Header sendet, der ein Donwload-Fenster anzeigt (als Content-Type: Image)?!

Oder halt aus einem Link raus eine entsprechende Funktion aufrufen, die die Header sendet.... wäre so meine Idee... :)

Fast richtig mit dem Header:


header("content-type: image/jpeg");
header("content-disposition: attachement; filename=Bild");
[/php]

EDIT:

Hier im Forum wurde solch eine Frage schon oft gestellt und beantwortet ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.