473,396 Members | 1,895 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Uploading an image to a folder and save its path in the database

how can I load image in a foder and load its name in data base
Aug 27 '07 #1
4 2191
pbmods
5,821 Expert 4TB
Heya, Partha. Welcome to TSDN!

I have split your post into its own thread to avoid hijacking the original poster's problem and to give your problem a better chance of getting seen.
Aug 27 '07 #2
MarkoKlacar
296 Expert 100+
Hi,

when the uploaded file is beeing taken care of it's stored in a global array called $_FILES. Here you can access all types of useful information, amongst other things the original name of the file, by original name I mean the name the file had on the client machine from where it was uploaded.

Hope this helps
Aug 29 '07 #3
daav31
4
Hi,

when the uploaded file is beeing taken care of it's stored in a global array called $_FILES. Here you can access all types of useful information, amongst other things the original name of the file, by original name I mean the name the file had on the client machine from where it was uploaded.

Hope this helps
In relation to your post, I have a problem where I have multiple files uploaded at ones into $_FILES, Do you know how I can loop through $_FILES to obtain the $_FILES['filedata']['tmp_name'] and $_FILES['filedata']['name'] for each uploaded file, I am having an extremely hard time figuring that out by using foreach and for loop...is there another way to do that...

Thanx for any help on this...
Dec 8 '07 #4
MarkoKlacar
296 Expert 100+
In relation to your post, I have a problem where I have multiple files uploaded at ones into $_FILES, Do you know how I can loop through $_FILES to obtain the $_FILES['filedata']['tmp_name'] and $_FILES['filedata']['name'] for each uploaded file, I am having an extremely hard time figuring that out by using foreach and for loop...is there another way to do that...

Thanx for any help on this...
Hi,

I thing you should be able to loop though multiple uploaded files.
What have you got so far?
Dec 10 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: brenny | last post by:
I'm saving image to any folder(no write,read permisions) by using image1.save method. I have accomplished this but I want to update this image,I want to change this image with another image or...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
4
by: Ramakrishnan Nagarajan | last post by:
Hi, I am facing a different problem in my application. In that I am uploading a folder that contain only images. Everything was done and was working fine too. When I executed the application using...
15
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the...
3
by: Gavin | last post by:
I need some help, I need the code to allow people that visit my website to be able to upload pictures to a file on my web server. I have been able to get close, but not quite there yet. Set fso...
0
by: lknight643 | last post by:
I have an asp.net application that works with a SQL server database on server No. 1 but I want to upload files for storage to Server No. 2 that is accessible only from the Internet. If the file...
44
by: badvoc | last post by:
Hi to all, Firstly I must state my knowledge of php is limited but I am a quick learner. I have taken on the task of finishing a friends website due to his untimely passing and have hit a problem...
0
by: RussCRM | last post by:
I want to use a command button, say "cmdDisplayImage" to display/ transfer a captured image from the ezVidCap1 control to an image or OLE box on the same form such as "PhotoPreview" (not sure...
2
by: RussCRM | last post by:
I want to use a command button, say "cmdDisplayImage" to display/ transfer a captured image from the ezVidCap1 control to an image or OLE box on the same form such as "PhotoPreview" (not sure...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.