[development] Better documentation for working with uploaded files?
David Cohen
drupal at dave-cohen.com
Fri Jul 13 01:26:17 UTC 2007
Richard,
Interestingly, I am working right now on an API module to help with
exactly this sort of thing. It's not as easy as it should be.
I've had to build this sort of thing for a couple clients in the past,
and now I'm trying to package it in a way that could be used by the
community. I'll CC you when its ready for wide audience consumption.
You should tune into the discussion at http://groups.drupal.org/file-api
Also, if you use CCK, you may find the filefield module is just what you
need, except for the part about where it is saved.
-Dave
On Thu, 12 Jul 2007 14:35:10 -0400, "Richard Morse"
<remorse at partners.org> said:
> Hi! Is there a better source for documentation on how to work with
> uploaded files than http://drupal.org/node/111782 [the handbook's
> page]? The list of function for working with files on api.drupal.org
> is not particularly helpful, and the handbook page is also rather
> sparse.
>
> Specifically, I want to have users upload seven files (all of which
> must be there), and then save them in a directory *which may not be a
> subdirectory of the Drupal files directory*. Also, I don't want
> Drupal's file upload size restrictions to apply for this one use.
>
> Or, in this case, would it make sense to just ignore the Drupal file
> functions and use $_FILES and the php file handling code directly?
> Would this adversely affect the FormAPI stuff? Would I be able to
> use a _validate function if I'm not using the Drupal file handling
> functions?
>
> Thanks,
> Ricky
>
>
>
>
>
> The information transmitted in this electronic communication is intended
> only for the person or entity to whom it is addressed and may contain
> confidential and/or privileged material. Any review, retransmission,
> dissemination or other use of or taking of any action in reliance upon
> this information by persons or entities other than the intended recipient
> is prohibited. If you received this information in error, please contact
> the Compliance HelpLine at 800-856-1983 and properly dispose of this
> information.
>
More information about the development
mailing list