Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

File upload

General discussions related to php

Moderators: macek, egami, gesf

File upload

Postby slrao » Mon Nov 25, 2002 10:09 pm

Dear,

I am having two php files. Let us assume it as a.php and b.php.

In a.php, the user is allowed to select the file to upload using FILE input box.

In b.php, I am trying to upload the file to my server if my other conditions are satisfied and enters record in the database. This does not have any user interface.

The problem is, even if my conditions are not satisfied, the program acts as if it is uploading the file when it is navigating from a.php to b.php. This action takes long time.

Please help me to solve this problem.

Thanks and Regards
Rao
slrao
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Nov 25, 2002 9:54 pm

Re: File upload

Postby WiZARD » Tue Nov 26, 2002 2:39 am

slrao wrote:Dear,

I am having two php files. Let us assume it as a.php and b.php.

In a.php, the user is allowed to select the file to upload using FILE input box.

In b.php, I am trying to upload the file to my server if my other conditions are satisfied and enters record in the database. This does not have any user interface.

The problem is, even if my conditions are not satisfied, the program acts as if it is uploading the file when it is navigating from a.php to b.php. This action takes long time.

Please help me to solve this problem.

Thanks and Regards
Rao


Give a code amby i can help you :wink:
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby slrao » Wed Nov 27, 2002 5:24 pm

I guess the problem is due to usage of ENCTYPE="multipart/form-data".

Is there any solution where I can use File Input Box and also get the file uploaded depending on Criteria?.

Thanks
slrao
New php-forum User
New php-forum User
 
Posts: 2
Joined: Mon Nov 25, 2002 9:54 pm

Postby Oleg Butuzov » Wed Nov 27, 2002 8:01 pm

I don not see your code
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby WiZARD » Thu Nov 28, 2002 1:45 am

slrao wrote:I guess the problem is due to usage of ENCTYPE="multipart/form-data".

Is there any solution where I can use File Input Box and also get the file uploaded depending on Criteria?.

Thanks

Sorry what i cannot give understand cause want ot sleep so mutch....
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP General

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.