We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Upload/Download module Recommendation or Ideas

How Do I?

restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Hi,

I’m looking for a module to upload in frontend one high resolution photos (7-20MB), create some thumbnails, one of them with watermark and after that move the high resolution file to a secure location above the root.

I don’t know if there is any module combination to do that, if not I will appreciate some directions.

I will use Carttrhob to sell these secure files.

Thank you.

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
10 years ago
Robin Sowell's avatar Robin Sowell

Just brainstorming a bit- the native channel form with a file field on it would give you most of this. I think everything but the ability to watermark only one of the resulting images. There are enough hooks in the entry submission to allow you to do that pretty easily with a custom extension. Or you could do it with a plugin when you output the image in the template.

I was going to say that might be overkill putting the images in as channel entries, but it looks like that’s how Carthrob holds products- correct? If so, then it sounds like it could be a perfect fit.

Note- I don’t know Cartthrob that well, so I’m making some assumptions about whether that would work to automatically enter the image into your CT products. But that’s where I’d start if it were me.

       
restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Thank you for your reply.

Using EE native features I can make the thumbnails and watermark. The only problem is how to move the original high resolution photo to a secure location outside the uploads folder with 777 permissions. It can be do it by hand, but I will have more than 5000 products so I’m looking an automatic way to do it.

After file is above the root it can be used as download in cartthrob.

       
Derek Jones's avatar
Derek Jones
7,561 posts
10 years ago
Derek Jones's avatar Derek Jones

You could use an upload path that is above web root, but then no way to access them via HTTP even in the file manager to see thumbnails, etc.

You might want to look at something like DevDemon’s Channel Files add-on, it allows uploads to be stored above web root and accessed via obfuscated URLs. You could contact them to see how secure their URL paths are, etc.

       
restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Derek,

I know this module but i need to generate the thumbnails this is why at first i’m asking for a way to automatically move a file after upload to above the root.

Thanks.

       
Derek Jones's avatar
Derek Jones
7,561 posts
10 years ago
Derek Jones's avatar Derek Jones

Yeah I’m not sure of its feature set or if that’s something it can do. They also have Channel Images; unsure if they share that portion of the feature set, but maybe that would be the route? I’d definitely reach out to them.

I mean, you can do what you want natively by setting the upload location server path above web root, but whatever solution you use, I assume you’re going to want to be able to see the images in the control panel afterward, which you will be unable to do without a custom solution since the files will no longer be accessible via HTTP.

       
Robin Sowell's avatar
Robin Sowell
13,255 posts
10 years ago
Robin Sowell's avatar Robin Sowell

It sounds like Carthrob wants the hi res image above root? That was somewhat my take on it.

I’d think an extension really might be the way to go. That means a little custom php work, but it wouldn’t be hard. Create a smaller/lower res to stay in the ‘native’ directory and move the hi res above root.

What I might do first- talk to CartThrob and see what they suggest. If it has to be above root to work with CT, then an extension makes sense.

If it doesn’t- could you just use htaccess to prevent direct access to the folder with the hi res image and then allow it in the thumb directories. I’d prefer to put the hi res above root, but this would be viable too IF it’s compatible with what CT requires.

       
restos's avatar
restos
54 posts
10 years ago
restos's avatar restos

Carthrob can use files stored above the root or url to send downloadable products. If url are used, the Ram memory can be an issue with various downloads at the same time.

It seems that Channel images can display on templates images stored above the root, so it is a good starting point.

Thanks.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.