Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2009-04-18 15:48:03

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: jbx_multiple_image_upload

Still getting the fatal error…

Offline

#12 2009-04-19 07:29:43

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 752
Website

Re: jbx_multiple_image_upload

I get an error on line 67 (no permissions …)
Where put the “upload” directory ? In the images directory ? Textpattern directory ? I try without success.

Offline

#13 2009-04-19 14:43:19

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

I´m currently facing some permission problems. The script tries to create the “upload” directory beneath the “textpattern” directory. Then it tries to create the files FancyUpload requires.

Problem is this: On my webhost, this works out fine. But I found out that on some other hosts, the creation of this folder fails due to the lack of permissions. So, just chmod your textpattern to 0777, then install the plugin. Check the “content/images” tab to see whether it worked out.

If so, set permissions of /textpattern/ back to 0755.

Could an expert help me out, please? On Linux systems, files/folders created by PHP have a different permission user/group than they would have if you upload them via FTP. Thus, manual deletion of the files fails. How to avoid this without foregoing the PHP file creation? I know it would work out if people just upload the folder. But I would feel sorry for the lack of comfort ;)

Last edited by grundgesetz (2009-04-19 14:45:53)

Offline

#14 2009-04-19 14:54:28

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 8,588
Website

Re: jbx_multiple_image_upload

grundgesetz wrote:

The script tries to create the “upload” directory beneath the “textpattern” directory.

Forgive the naive question: couldn’t you create the ‘upload’ directory beneath the ‘images’ directory? That has to have write permission in order for Textpatten to work correctly.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#15 2009-04-19 15:33:44

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

I feel quite ashamed now… thanks for that! :)
-> directory will be located at /images/upload/ in the next version

I really have to revise the code from ground up after my final exams. Getting into this slowly…

Last edited by grundgesetz (2009-04-19 15:42:26)

Offline

#16 2009-04-20 01:07:19

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

Hey Folks…

I had some spare time, so i completely revised the code.

jbx_multiple_image_upload v0.3a

  • Bloke: changed directory to images/upload
  • jm: used a class now. nearly no globals, no constants, please have a short expert-look into it ;) I tried to make it PHP4-compatible.

What do you say?

Last edited by grundgesetz (2009-04-20 01:08:29)

Offline

#17 2009-04-20 01:25:04

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: jbx_multiple_image_upload

grundgesetz wrote:

What do you say?

I say hooray! Very nice. I assume there’s a five file limit…

Offline

#18 2009-04-20 01:31:56

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

mrdale wrote:

I say hooray! Very nice. I assume there’s a five file limit…

Oh :D Didn´t mind that. -> now is 100. Don´t know about perfomance at that numbers though…

Last edited by grundgesetz (2009-04-20 01:32:07)

Offline

#19 2009-04-20 01:56:56

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
Website

Re: jbx_multiple_image_upload

Yeah, maybe add the file limit to the admin tab. Other than that, this is mucho cool.

Offline

#20 2009-04-20 02:15:08

grundgesetz
Plugin Author
From: Germany
Registered: 2009-04-17
Posts: 24

Re: jbx_multiple_image_upload

Okay I will add that as an option. How about file size limit?

Note: Image Uploads are not restricted by this value. The maximum allowed size for images is always ~ 1MB (unless restricted by PHP as explained above).

What does that mean? Is the only restriction the php.ini?

Offline

Board footer

Powered by FluxBB