473,396 Members | 1,860 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.

Problems with File Uploads

Hello,

I've written the following sourcecode:

<form action="test.php" method="POST" enctype="multipart/form-data">
<input type="file" name="datei">
<input type="submit">
</form>

// test.php
<?
echo $datei_name; // No output.
echo $_FILES['datei']['name']; // No output.
?>

Can anybody help me?

Mathias Soeken
Jul 16 '05 #1
1 1705
Wm
"Mathias Soeken" <so****@pprojekt.de> wrote in message
news:8b*************************@posting.google.co m...
Hello,

I've written the following sourcecode:

<form action="test.php" method="POST" enctype="multipart/form-data">
<input type="file" name="datei">
<input type="submit">
</form>

// test.php
<?
echo $datei_name; // No output.
echo $_FILES['datei']['name']; // No output.
?>

Can anybody help me?


Did you do an extract($_POST) ? Otherwise you'll probably need echo
"$_POST['datei']". You're echoing $datei_name but I don't see that variable
anywhere.

Wm
DISCLAIMER: I'm a newbie, so my input is just a guess!

Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris | last post by:
I am having a problem with a php upload script. it will allow me to upload small files (about 1Mb) but not larger ones (less than the upload_max_filesize). Can you help diagnose what the...
5
by: Kikoz | last post by:
Hi all. I assume that if the user uploads a file from aspx page IIS will put all future requests to the same page from other users in a line and all of them will be waiting until this upload...
2
by: julio | last post by:
I comment a new problem that we have, or that today we realized, and that is driving crazy to us. The subject is with file uploads. And I suppose that it has to do with automatic updates of...
4
by: yehaimanish | last post by:
I am developing the project management system. Each Project: 1. Title, description ... , stored in mysql database 2. Upto ten files (initial description), (name in db, file in file system) 3....
5
by: ^MisterJingo^ | last post by:
Hi all, On a 2.0 app i'm working on I'm attemtping to get file uploads to work. I have given the ASPNET process full access to the upload directory, but I still get an access densied error. If I...
1
by: Nosferatum | last post by:
I intend to upload documents (file_up), categorize them in 4 main categories (k_cat), have additional sub-categories (lec_cat) just for querying and getting sub-categorized output of the files when...
6
by: Emmanuel Petit | last post by:
First of all I am rather new into PHP. I use php 5 and I am putting together a web site for a local association I belong too. Most of the site is okay, except for this problem : I need to be...
2
by: tshad | last post by:
I have some code where I am trying display either jpgs or gifs. They are going an image tag: <img src="" id="PictureDisplay" alt="" /> This displayed fine under VS 2003 but when I moved this...
3
by: adamjblakey | last post by:
Hi, Can anyone see what is wrong with this function. The problem is that when it creates the 450px image it comes out black and not in colour like the thumbnail. Any ideas? <?php function...
3
by: kpg | last post by:
(Multi-post from microsoft.public.dotnet.framework.aspnet.webservices, Please apply all applicable pardons.) Hi all, I have a web service that FTPs data it receives to a third party FTP site....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.