473,326 Members | 2,680 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,326 software developers and data experts.

file upload/download issue

Hi,

I developed a website using php5 & mysql5. One of its features is the
ability of users to upload files to the server, and allow other users
to
view these files.

I allow uploading the following file types: doc, pdf, txt, jpg, gif.

My testing was done on two PCs:
- PC1 with WinXP, IE7, OpenOffice
- PC2 with WinXP, IE6, Office XP.

I manage to successfully download and open files on PC1, but I have
a problem on PC2 with IE6, where in the File Download dialog of IE, I
cannot
press Open and successfully open the file, but if I choose Save and
then
open the saved file, it works!

Additional info:
- Mysql is configured to use utf8.
- My PHP pages deliver the correct content type
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- I use "SET NAMES utf8" right after opening a db connection.
- Using addslashes on the file content before saving to db, but
no stripslashes are used - with them, nothing works on PC2.
- Note that in the File Download dialog in IE6 and IE7, the filename
is gibberish.
- In Firefox things work fine. Even the file names in the File
Download
dialog show correctly.

I am beginning to run out of ideas, so
any ideas/suggestions will be much appreciated.

RD

Sep 11 '07 #1
3 2051
rafi wrote:
Hi,

I developed a website using php5 & mysql5. One of its features is the
ability of users to upload files to the server, and allow other users
to
view these files.

I allow uploading the following file types: doc, pdf, txt, jpg, gif.

My testing was done on two PCs:
- PC1 with WinXP, IE7, OpenOffice
- PC2 with WinXP, IE6, Office XP.

I manage to successfully download and open files on PC1, but I have
a problem on PC2 with IE6, where in the File Download dialog of IE, I
cannot
press Open and successfully open the file, but if I choose Save and
then
open the saved file, it works!

Additional info:
- Mysql is configured to use utf8.
- My PHP pages deliver the correct content type
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- I use "SET NAMES utf8" right after opening a db connection.
- Using addslashes on the file content before saving to db, but
no stripslashes are used - with them, nothing works on PC2.
- Note that in the File Download dialog in IE6 and IE7, the filename
is gibberish.
- In Firefox things work fine. Even the file names in the File
Download
dialog show correctly.

I am beginning to run out of ideas, so
any ideas/suggestions will be much appreciated.
Really - nobody can help if you don't post the code.
>
RD
Sep 11 '07 #2
rafi <ra********@gmail.comwrote in news:1189514911.908560.133090
@r29g2000hsg.googlegroups.com:
Hi,

I developed a website using php5 & mysql5. One of its features is the
ability of users to upload files to the server, and allow other users
to
view these files.

I allow uploading the following file types: doc, pdf, txt, jpg, gif.

My testing was done on two PCs:
- PC1 with WinXP, IE7, OpenOffice
- PC2 with WinXP, IE6, Office XP.

I manage to successfully download and open files on PC1, but I have
a problem on PC2 with IE6, where in the File Download dialog of IE, I
cannot
press Open and successfully open the file, but if I choose Save and
then
open the saved file, it works!
Sounds like PHP and everything is working fine, and that your issue is
really with IE6.
Sep 11 '07 #3
On Sep 11, 4:41 pm, Good Man <he...@letsgo.comwrote:
rafi <rafi.da...@gmail.comwrote in news:1189514911.908560.133090
@r29g2000hsg.googlegroups.com:


Hi,
I developed a website using php5 & mysql5. One of its features is the
ability of users to upload files to the server, and allow other users
to
view these files.
I allow uploading the following file types: doc, pdf, txt, jpg, gif.
My testing was done on two PCs:
- PC1 with WinXP, IE7, OpenOffice
- PC2 with WinXP, IE6, Office XP.
I manage to successfully download and open files on PC1, but I have
a problem on PC2 with IE6, where in the File Download dialog of IE, I
cannot
press Open and successfully open the file, but if I choose Save and
then
open the saved file, it works!

Sounds like PHP and everything is working fine, and that your issue is
really with IE6. - Hide quoted text -

- Show quoted text -
You are correct, it's an IE6 issue. To make sure that is the case, I
upgraded
IE6 to IE7 on PC2, and it worked perfectly.

Sep 14 '07 #4

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

Similar topics

1
by: Stevio | last post by:
I have a guy asking me about the speed of downloads from his web site. I use ASP code to send the download to the user, and the code I use is basically like this: FileName =...
2
by: JP SIngh | last post by:
Hi All I am creating an asp application which is essentially a file management app. I am trying to get my head around a technically issue wonder if someone can offer some help. I want to be...
6
by: Paul | last post by:
Hi there, When adding a "File Field" HTML control to an aspx page to facilitate file uploading, the following occurs: 1. You select a file that is larger than the allowed size limit. 2. Once...
18
by: Jen | last post by:
I'm using Microsoft's own VB.NET FTP Example: http://support.microsoft.com/default.aspx?scid=kb;en-us;832679 I can get the program to create directories, change directories, etc., but I can't...
1
by: theburnetts | last post by:
I am building an ASP.NET application that has a requirement that the user should be able to download all of the data that they have input into the system and save it to a file on their local PC. ...
4
by: Jonny | last post by:
Hello Group How do I open a Save File Dialog from an ASPX page behind a browse button? Any help would be fantastic!! I am using ASP.NET 1.1 using VB.NET as the coding language TIA
4
by: abhanjee | last post by:
Hello, I am a newbie and am developing an application for work. I have figured out how to upload a file attachment to the SQL database and download the same file using C# and Visual Studio....
4
by: Vlad | last post by:
I am having problems using the file.create method within a function that is called when looping through an array of filepaths. If I call my function with a hardcoded file path --C:\Temp.txt the...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.