Why symfony 1.0? :( Why IE6? Don't get me wrong, this has nothing to
do with your original question, just — why?
Now, your question. Just think about what you're asking. Your app
inside the sandbox, namely your browser, shall save to the user's
harddrive. What would you say if a website saved a fee pictures to
your desktop?
This is only possible by using a Java applet and has nothing to do
with symfony in any way. Just google for a Java upload applet and
you'll see that it has access to read from the user's harddrive to
select a file to upload but I don't think that write access is
possible — and if it is, security will be pretty tight.
Just let the user upload the file, process it and then let the user
download the processed file. With clear and concise descriptions on-
screen this should be no problem for your users.
Cheers, Daniel
Sent from my iPhone
On Jan 15, 2010, at 9:15 AM, Gareth McCumskey <gmccums...@gmail.com>
wrote:
With just plain old PHP and even some Javascript built in this is
actually very difficult if not impossible to do as PHP was never
designed to interact with a users PC. Javascript was however
designed to run client-side but does not have direct access to a
users hard drive for obvious security reasons. The only way you may
get past this is to use another plugin. I am not sure which plugin
would be useful, perhaps Flash, but as far as I know even Java (not
Javascript) cannot do this (but I stand to be corrected on that).
You may also want to look into Google Gears (which I have not yet
used). The problem with these scenarios is that you will need the
user to download a plugin for their browser.
Essentially, the easiest way is to let them upload, the changes are
made by PHP, then PHP prompts the user to re-download the changed
file.
Regards
Gareth McCumskey
----- Original Message -----
From: "bibijosh" <dorothee.arno...@gmail.com>
To: "symfony users" <symfony-users@googlegroups.com>
Sent: Thursday, January 14, 2010 7:02:43 PM GMT +02:00 Harare /
Pretoria
Subject: [symfony-users] Open an Excel file
Hi, I'm quite new to Symfony, and not really good at php in the first
place. So if someone could give me a hand here.
Here is what my website does for now :
- Open an explorer window so the user can upload an excel file
- Modify that file
- Save it on my server.
Here is what I would like to do :
- Open an explorer window so the user can upload an excel file
- Modify that file AND THEN open it in an Excel Window. (I can only
manage to display it in my webpage, which doesn't look good at all,
I heard it could be because of the mime type actions...)
AND/OR
- Save it on the user's computer, where it was first uploaded from,
without the user having to do anything.
I'll welcome any advice.
I'm using php5, Symfony 1.0 and IE 6
--
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
.
--
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com
.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
.
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.