Oh, I missed that part. I'm not an expert, so you may want to investigate
alternatives, but with the shutil module you can copy files or entire
directories:
http://docs.python.org/library/shutil.html
Look for copy and copytree.
Best,
Paulo
On Fri, Mar 19, 2010 at 2:32 PM, tezro wrote:
> Oh. I
Oh. I get it, sorry. Any suggestions on my next question about
file.read() would be thankful.
On Mar 19, 5:20 pm, Paulo Almeida wrote:
> Hi,
>
> My suggestion to zip the files was to provide a single download link with
> all the files.
>
> - Paulo
>
> On Fri, Mar 19, 2010 at 1:43 PM, tezro wrote
Hi,
My suggestion to zip the files was to provide a single download link with
all the files.
- Paulo
On Fri, Mar 19, 2010 at 1:43 PM, tezro wrote:
> Thanks for reply. I tried both variants before the post :) Nothing
> suited me and the customer.
>
> When a-mailng files are uploaded to RAM anyw
Thanks for reply. I tried both variants before the post :) Nothing
suited me and the customer.
When a-mailng files are uploaded to RAM anyway, zipping files just
don't really help on binary data. I chosed to save them to a web-
visible location.
On Mar 18, 7:59 pm, Paulo Almeida wrote:
> I can't
Hi. All that you say is totally clear to me, but I tried to suit the
customer's needs. And, yes, I finished my deals on just saving the
images serverside and sending links to files over e-mail. Thanks for
that.
Another question that bothers me is the following.
---
> I've got a form with 20 ImageFields - such a form for sending photos
> to the site admin as a request for a new user. Well, Django certainly
> handles and uploads the, that's OK. But when it comes to sending all
> the files as an attachment - I got stuck.
> Small files are read nicely. But when
I can't help you with the technical part, but a couple of suggestions:
* Sum the size of the images and send two (or more) e-mails if it exceeds a
threshold
* Forget attachments and just zip the images and make them accessible in an
URL that is e-mailed to the site admin
- Paulo
On Wed, Mar 17,
Hello everyone. I need some help or advice.
I've got a form with 20 ImageFields - such a form for sending photos
to the site admin as a request for a new user. Well, Django certainly
handles and uploads the, that's OK. But when it comes to sending all
the files as an attachment - I got stuck.
Her
8 matches
Mail list logo