Zurück   Flashforum > Flash > Flash Fortgeschritten > Flash 8

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 26-07-2005, 07:33   #16 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
Hehe, jo dummy, fein. Danke. Was auch interessant sein dürfte ist der Security Bereich (Sandbox)
Zitat:
Enhanced privacy control

Additional privacy control for local storage in Flash applications enables users to automatically block local storage by applications that originate from a domain other than that of the containing web page. For example, advertisements on web pages are typically served from an advertiser’s web server rather than the site itself. This would block storage of tracking information that might be placed by those applications.
Die armen Werbeleute tun mir leid, müßen immer noch ufm 5'er Player rumreiten...
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.
shorty ist offline   Mit Zitat antworten
Alt 29-07-2005, 13:18   #17 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
Lightbulb Links aktualisiert.

Die Links aus dem ersten Beitrag sind nichtmehr aktuell. Da sie bereits mehr als XXX mal geklickt wurden, hier die aktualisierten:


Sorry, kommt nicht wieder vor ...
shorty
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.

Geändert von shorty (23-01-2006 um 22:43 Uhr)
shorty ist offline   Mit Zitat antworten
Alt 31-07-2005, 04:48   #18 (permalink)
Neuer User
 
Registriert seit: Dec 2004
Beiträge: 13
Listeners

Es scheint als ob die Listeners doch funktioneren, nur heissen die Funktionen anders als in Macromedia Central:

onSelect - anstatt onBrowse
onProgress - anstatt onUploadProgress
onComplete - anstatt onUploadSuccess

die anderen lassen sich bestimmt auch noch rausfinden

übrigens, ein simples PHP-Skript das die Files speichert, sieht so aus (danke LuminicBox):
PHP-Code:
<?php

foreach ($_FILES as $fieldName => $file) {
    
move_uploaded_file($file['tmp_name'], "./" $file['name']);
}

?>
yo
knueffelbund ist offline   Mit Zitat antworten
Alt 01-08-2005, 12:29   #19 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
Thumbs up

Super !

Ich aktualisiere die Daten auf'm Server heute Abend, nach der arbeit ( ).
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.
shorty ist offline   Mit Zitat antworten
Alt 24-08-2005, 18:31   #20 (permalink)
darki000
Gast
 
Beiträge: n/a
Probleme mit Dateien 6MB+

Hi,

ich finde die Uploadfunktion bisher schon sehr fein.
Probleme habe ich im Moment bei Dateien über 6MB.

Auf dem Server ist PHP 4.3.0 installiert und max.Upload / POST und Timeout sind wohl auf 10 MB ausgelegt.

Hat jemand die Uploadfunktion mit PHP schon mit größeren Dateien, bis zu 30 MB, hinbekommen?

Mein PHP-Script sieht in etwa so aus:
PHP-Code:
<?php
foreach ($_FILES as $fieldName => $file) {
    echo 
move_uploaded_file($file['tmp_name'], "../pictures/".$file['name']);
    
$myTempFile "../pictures/".$file['name'];
    
chmod($myTempFile,0777);
}
?>
Update: Mithilfe der Listener onHTTPError und onIOError konnte ich feststellen, dass es ein IO-Error ist. Den Grund dafür, kann ich nicht feststellen. Worauf könnte das zurückzuführen sein?

PS: Lässt sich die Flash-8 Upload Funktion für größere Dateien eventuell auch mit einer FTP Funktion (über PHP) nutzen?

Geändert von darki000 (25-08-2005 um 15:57 Uhr)
  Mit Zitat antworten
Alt 25-08-2005, 15:28   #21 (permalink)
\x3a\x6f\x29
 
Benutzerbild von [je]
 
Registriert seit: Apr 2004
Ort: paris
Beiträge: 806
Nur etwas zum Callback:

Zitat:
For those searching for the event callback functions for the FileReference:

var listener = new Object();

/*
* Gets called when user presses Open in the file open box
*/
listener.onSelect = function(file:FileReference) {
_root.tf.text += “\nonSelect: File selected ” + file.name + “(” + (Math.round(file.size / 1024 * 100) / 100) + “kb)\n”;
}

/*
* Gets called when user presses Cancel in file open box
*/
listener.onCancel = function(file:FileReference) {
_root.tf.text += “\nonCancel: Cancel browse ” + file;
}

/*
* Gets called when the .upload() function is called on a file
*/
listener.onOpen = function(file:FileReference) {
_root.tf.text += “\nonOpen: Starting upload ” + file.name;
}

/*
* Gets called periodically during upload
*/
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number) {
_root.tf.text += “\nonProgress: ” + file.name + ” loading: ” + Math.round(bytesLoaded / bytesTotal * 100) + “%”;
}

/*
* If the server doesn’t handle the file upload
* but only after the file has uploaded not before
*/
listener.onHTTPError = function(file:FileReference, httpError:Number) {
_root.tf.text += “\nonHTTPError: ” + file.name + ” failed upload ” + httpError ;
}

/*
* If upload is called on a non http url like file://
* but only if you don’t read the boolean result from upload() for some reason.
*/
listener.onIOError = function(file:FileReference) {
_root.tf.text += “\nonIOError: Could not upload ” + file.name;
}

_root.file.addListener(listener);
Quelle: http://www.franto.com/blog2/collecte...strom-examples
__________________
joa ebert
http://blog.joa-ebert.com/ - http://www.joa-ebert.com/
[je] ist offline   Mit Zitat antworten
Alt 25-08-2005, 22:57   #22 (permalink)
Neuer User
 
Benutzerbild von dummy2
 
Registriert seit: Feb 2003
Ort: Erde
Beiträge: 601
Lässt sich auch irgendwie der Pfad zum Speichern der Dateien in Flash definieren?
__________________
'''''
|dummysystem.tk current experiment|dummy3.ex6.de old experiment|
dummy2 ist offline   Mit Zitat antworten
Alt 26-08-2005, 00:55   #23 (permalink)
notzucht
 
Benutzerbild von shorty
 
Registriert seit: Nov 2003
Ort: Potsdam
Beiträge: 2.939
Hey dummy,

der Pfad läßt sich noch immer nicht mit übergeben....

@ [je] -
__________________
.
Flex in a week | Viertel vor halb nach Vollmond | ^^°.°^^ | Waltz with Bashir
.
shorty ist offline   Mit Zitat antworten
Alt 30-08-2005, 16:00   #24 (permalink)
Neuer User
 
Benutzerbild von dummy2
 
Registriert seit: Feb 2003
Ort: Erde
Beiträge: 601
Das scheint interessant zu sein, für die die es noch nicht gesehen haben.
http://www.pixel******.com/flash-8-file-upload-rc-1/

Die Sternchen durch f+icker ersetzen.. Blöd mit der Zensur

Und diese Stelle

ActionScript:
  1. $folder is there if you want to use subfolders inside uploads.
  2. So you would have to submit a folder variable from inside flash: instead of calling “?” (which could have been left blank too, or a path to your upload script like ‘upload.php) which itself is just a placeholder, you’d write “?folder=specialfolder”, or “upload.php?folder=specialfolder”, php collects this variables inside the global vars $_REQUEST, so you’d have to search for $_REQUEST[’folder’] inside php and you get whatever you submitted there, in this case it would be ’specialfolder’, so the line:
  3.  
  4. echo move_uploaded_file($file[’tmp_name’], “uploads/” .$folder . $file[’name’]);
  5.  
  6. should actually be:
  7. $folder = $_REQUEST['folder'];
  8. echo move_uploaded_file($file['tmp_name'], "uploads/". $folder.$file['name']);
  9.  
  10. where “$file” is again a global variable or object where php stores references to the temporarily uploaded file ($file[’tmp_name’]) and the actual name of the uploaded file ($file[’name’]).
__________________
'''''
|dummysystem.tk current experiment|dummy3.ex6.de old experiment|

Geändert von dummy2 (30-08-2005 um 16:06 Uhr)
dummy2 ist offline   Mit Zitat antworten
Alt 12-10-2005, 11:17   #25 (permalink)
Mitarbeiter
 
Registriert seit: Aug 2002
Beiträge: 64
Sag mal,
woher bekommst Du denn den Ordner-Namen, also den Pfad, in dem die Datei liegt?

Und noch ne Frage dazu: Hat es von euch schon mal einer mit dem upload-Befehl aus Flash heraus hinbekommen? Wie muß da denn dann das PHP-Script für aussehen? Also so was, wie er hier: http://www.samarihorse.com/upload_download.html

Grüßle
T

Geändert von brabathehut (12-10-2005 um 15:02 Uhr)
brabathehut ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 23:02 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele