Problems, need help? Have a tip or advice? Post it here.
70 posts Page 6 of 7
Previous 1 ... 3, 4, 5, 6, 7 Next
So im having a problem with Securefile!

I have a page using the <cms:editable type='file'> and it seems to give some problem when uploading img with size over 2048px. I get error when trying this!

Kim, there is a discrepancy in your report above - the problem is with type 'file' or 'securefile'? The two are different entities. Please clarify.

Also, could you please tell us exactly the error you are getting?

Thanks.
<cms:editable name='uploaded_image' required='1' allowed_ext='jpg, jpeg, png, gif' max_size='2048' type='securefile' />

If it's with securefile - then try to set bigger size as in the example.
unlimited time premium coding support $99 per project - PM or email me or discuss in topic
active topics
KK wrote:
So im having a problem with Securefile!

I have a page using the <cms:editable type='file'> and it seems to give some problem when uploading img with size over 2048px. I get error when trying this!

Kim, there is a discrepancy in your report above - the problem is with type 'file' or 'securefile'? The two are different entities. Please clarify.

Also, could you please tell us exactly the error you are getting?

Thanks.


Im using SECUREFIL. I did also try Trendoman`s selution but no luck.

Im getting Error that page could not load!
Can anyone please help with this problem with PICTURE to big!

My error is PAGE CAN NOT LOAD CONTENT

and i did all the tips and tricks posted by trendoman and KK.
I can take a look at it in an hour or so. Stay tuned :)
unlimited time premium coding support $99 per project - PM or email me or discuss in topic
active topics
3 uploading securefile images at once were not fit into memory cap. Experiments were needed to find the max parameters of width, height, quality to ensure uploading of 3 images 5900x5900@8mb each. Turned out with 129mb memory and max php 300mb memory, reported by phpinfo.php, server could absorb pics at enforced_max resolution up to 1300px/quality 80. Current memory setting in timthumb is at 250mb.
Final settings for future reference:
Code: Select all
includes-fileuploader-config              k_max_upload_size 10
includes-plupload-upload                max_file_size : '10mb',
includes-timthumb                      ini_set('memory_limit', "250M");

+ in couch-addons-data-bound-form-securefile.php:
            $default_max_size = 10240; // in KB
            $default_max_width = 6000;
            $default_max_height = 6000;

each of 3 editables definition: width='1300' height='1300' enforce_max='1' quality='80'
unlimited time premium coding support $99 per project - PM or email me or discuss in topic
active topics
trendoman wrote: 3 uploading securefile images at once were not fit into memory cap. Experiments were needed to find the max parameters of width, height, quality to ensure uploading of 3 images 5900x5900@8mb each. Turned out with 129mb memory and max php 300mb memory, reported by phpinfo.php, server could absorb pics at enforced_max resolution up to 1300px/quality 80. Current memory setting in timthumb is at 250mb.
Final settings for future reference:
Code: Select all
includes-fileuploader-config              k_max_upload_size 10
includes-plupload-upload                max_file_size : '10mb',
includes-timthumb                      ini_set('memory_limit', "250M");

+ in couch-addons-data-bound-form-securefile.php:
            $default_max_size = 10240; // in KB
            $default_max_width = 6000;
            $default_max_height = 6000;

each of 3 editables definition: width='1300' height='1300' enforce_max='1' quality='80'


Thanks againg trendoman :) just amazing work. This helped me ALOT :)
New question!

Im having some issue with EDIT db form.

Today im getting redirected to k_page_link so thats ok!

So im admin and i click a user in (self made admin system) and comes to the EDIT profile page. I get the ID for user and can edit the info with out any problems (employes-view.php?id=56)

But i wanna make the form redirect me to the employes-view.php?id=56 page after edit but then i get ERROR: Tag "form" - page_id required since i mist have the ID for the user again.

Any ideas guys ?

Code: Select all
<cms:set edit_user = "<cms:gpc var='id'/>" 'global'/>
<cms:set id="<cms:gpc 'id' method='get' />" scope='global' />

                                            <cms:form
                                                masterpage='client/index.php'
                                                mode='edit'
                                                page_id=edit_user
                                                enctype="multipart/form-data"
                                                method='post'
                                                anchor='0'
                                                >

                                                <cms:if k_success >
                                                    <cms:db_persist_form />

                                                    <cms:if k_success >
                                                        <cms:set_flash name='success_msg' value='1' />
                                                        <cms:redirect k_page_link />
                                                    </cms:if>
                                                </cms:if>
redirect me to the employes-view.php?id=56 page


@kimheggen, try to set up a destination url and then redirect to it
Code: Select all
<cms:set destination_url = "<cms:link masterpage='employes-view.php' />?id=<cms:show id />" />
<cms:redirect destination_url />

Make sure you paste correct full name of the template as masterpage, as it appears in sidebar while hovering over template's title.

Hope it solves the request :)
unlimited time premium coding support $99 per project - PM or email me or discuss in topic
active topics
trendoman wrote:
redirect me to the employes-view.php?id=56 page


@kimheggen, try to set up a destination url and then redirect to it
Code: Select all
<cms:set destination_url = "<cms:link masterpage='employes-view.php' />?id=<cms:show id />" />
<cms:redirect destination_url />

Make sure you paste correct full name of the template as masterpage, as it appears in sidebar while hovering over template's title.

Hope it solves the request :)


Thats just amazing :) thanks, it works perfectly :)
Previous 1 ... 3, 4, 5, 6, 7 Next
70 posts Page 6 of 7

Who is online

In total there are 9 users online :: 0 registered, 0 hidden and 9 guests
(based on users active over the past 5 minutes)

Users browsing this forum: No registered users and 9 guests