Uploader 10 fichiers dans un formulaire

robbielove Messages postés 25 Date d'inscription dimanche 25 janvier 2004 Statut Membre Dernière intervention 15 mars 2007 - 4 oct. 2006 à 16:51
robbielove Messages postés 25 Date d'inscription dimanche 25 janvier 2004 Statut Membre Dernière intervention 15 mars 2007 - 5 oct. 2006 à 09:56
voici mon petit soucis du jour :)

J'ai un formulaire avec 10 FileUpload dont je me sers pour envoyer 10 fichiers images.
Une fois que je valide mon formulaire, une seule requete http est envoyée au serveur (car les 10 fileUpload sont dans le même formulaire).

ma question est donc la suivante : est-il possible (AJAX ou autre technique) d'envoyer 1 requete Http par fichier à uploader ??

MERCI :)

2 réponses

jesusonline Messages postés 6814 Date d'inscription dimanche 15 décembre 2002 Statut Membre Dernière intervention 13 octobre 2010 29
5 oct. 2006 à 09:22
Bonjour,


Pour des raisons de sécurité tu ne peux pas uploadé un fichier par Ajax, mais je ne vois pas quel est le problème, tu envoies les 10 fichiers dans une seule requete HTTP et alors ?





<hr />

Cyril - MVS - MCP
0
robbielove Messages postés 25 Date d'inscription dimanche 25 janvier 2004 Statut Membre Dernière intervention 15 mars 2007
5 oct. 2006 à 09:56
Merci pour ta réponse

bien qu'ayant placé <httpRuntime maxRequestLength="204800" /> dans mon webconfig
il est arrivé une fois de temps en temps que j'aboutisse à :






Server Error in '/' Application. Thread was being aborted.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Threading.ThreadAbortException: Thread was being aborted.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: [ThreadAbortException: Thread was being aborted.]  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +483  System.Web.HttpApplication.ResumeSteps(Exception error) +539  System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +144  System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +300






alors que je n'envoie que 5 fichiers de 3Mo chacun
0
Rejoignez-nous