Drag and Drop with PHP and MySQL

Drag and Drop with PHP and MySQL

am 19.11.2005 02:42:02 von Chris Payne

------=_NextPart_000_0001_01C5EC80.88100F10
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

HI there everyone,



I have a file upload system where you select via requester the file to
upload, it then uploads it with PHP and stores the info in a MySQL database.
Is there an interface / programming method I can use which I can DRAG a file
from the desktop into an area in a form just as if I had used a file
requester to select a file? Learning a new programming technique is no
problem as long as it can be used with PHP and MYSQL.



Any helps / pointers would be REALLY welcome.



Chris


------=_NextPart_000_0001_01C5EC80.88100F10--

Re: Drag and Drop with PHP and MySQL

am 19.11.2005 02:59:21 von Micah Stevens

No. That would be nice though eh?

What I have done in the past is when a user needs to upload a file, I give
them a linked button that links to a ftp:// style address. This ftp account
points to a directory that PHP can have access to.

The user then drags and drops (IE only) the files on this new window, which
uploads the files to this directory.

Once they're done, they close the window, and hit a second button 'Click here
when finished uploading' which tells php to grab all the files in the upload
directory and put them where they need to go.

This is far from ideal, causes miserable problems when more than one person is
using the technique at once, and offers a host of security and usability
issues. Oh, and it's IE only, Firefox can't do this, and I don't think
opera/safari can either.

However, it's much better than uploading a ton of files individually using a
form. I only use this for applications where I can be sure that only one user
will use it at once, and they're trusted.

In a pinch it works though. I don't care so much about drag and drop, I was
just trying to solve the multi-file upload issue. I wish there was a better
way.

If I'm stupid and there is, I'd love to hear about it.

-Micah

On Friday 18 November 2005 5:42 pm, Chris Payne wrote:
> HI there everyone,
>
>
>
> I have a file upload system where you select via requester the file to
> upload, it then uploads it with PHP and stores the info in a MySQL
> database. Is there an interface / programming method I can use which I can
> DRAG a file from the desktop into an area in a form just as if I had used a
> file requester to select a file? Learning a new programming technique is
> no problem as long as it can be used with PHP and MYSQL.
>
>
>
> Any helps / pointers would be REALLY welcome.
>
>
>
> Chris

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: Drag and Drop with PHP and MySQL

am 19.11.2005 21:46:52 von David Borton

I have seen an app built using Ruby on Rails that demonstrates a drag and
drop.

-----Original Message-----
From: Chris Payne [mailto:chris@artistwd.com]
Sent: Friday, November 18, 2005 6:42 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Drag and Drop with PHP and MySQL

HI there everyone,



I have a file upload system where you select via requester the file to
upload, it then uploads it with PHP and stores the info in a MySQL database.
Is there an interface / programming method I can use which I can DRAG a file
from the desktop into an area in a form just as if I had used a file
requester to select a file? Learning a new programming technique is no
problem as long as it can be used with PHP and MYSQL.



Any helps / pointers would be REALLY welcome.



Chris

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php