Forums

File Upload problem

zlajonja 17 May, 2012
Hello there,

As this is my first post here, I'd just like to say that although I've not worked much with ChronoForms, I found it a great tool with limitless possibilities. Kudos on everything you've done.

As for my problem... I've done everything there is in the video tutorial to create a file upload (picture). It was meant for avatar upload on the site as a part of registration process, but it doesn't work. Then I created a form with only the file upload option to check it out. Still no use.

So the problem is as follows: It does upload the file, but the file isn't working. The picture is in the folder where I want to put it, with correct file name, but is unusable.

Debugger:
Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => Avatar
    [event] => submit
    [Itemid] => 
    [avatar] => 20120517161431_wallpaper-hd-fantasy-creating-green-fire-elf-2737.jpg
    [input_submit_1] => Submit
    [03793a7805550e446a56625dd5dadd45] => 1
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                    [avatar] => Array
                        (
                            [name] => 20120517161431_wallpaper-hd-fantasy-creating-green-fire-elf-2737.jpg
                            [path] => /var/www/*******/images/avatar/20120517161431_wallpaper-hd-fantasy-creating-green-fire-elf-2737.jpg
                            [size] => 114951
                            [link] => http://****/images/avatar/20120517161431_wallpaper-hd-fantasy-creating-green-fire-elf-2737.jpg
                        )

                )

        )

)
Validation Errors: 
Array
(
)
Debug Data
Upload routine started for file upload by : avatar
/var/www/vhosts/******/images/avatar/20120517161431_wallpaper-hd-fantasy-creating-green-fire-elf-2737.jpg has been uploaded OK.


Also, I thought at first it didn't upload the image at all.. So I tried with a bigger image, but then it REALLY didn't upload it at all:

Debugger:
Data Array: 
Array
(
    [option] => com_chronoforms
    [tmpl] => component
    [chronoform] => Avatar
    [event] => submit
    [Itemid] => 
    [_PLUGINS_] => Array
        (
            [upload_files] => Array
                (
                )

        )

)
Validation Errors: 
Array
(
)


Seems to me like it can't wait for the whole thing to get uploaded...

I tried with a txt file upload with some numbers content and the result was that the numbers became NULL values after the upload...????

Any help?

Thanx,
Zla
GreyHead 17 May, 2012
Hi zlajonja,

It looks as though the upload folder is password protected by htaccess - is that making the image unusable?

Bob
zlajonja 18 May, 2012
That must be it! Thank you a bunch. I will check it out as soon as I can and post here when I work it out.🙂
zlajonja 18 May, 2012
Hmm... I set htaccess for that folder to allow from all and still no use.. The same thing. If I come up with some solution I'll post here, or if you maybe have some other idea, that would be great.

Thanx again,
zla
GreyHead 18 May, 2012
Hi zla,

Is the uploaded file in the folder?

Bob
zlajonja 19 May, 2012
GreyHead,

1. Yep, the file (unusable) gets into the wanted folder.

I figured out that the script makes the file go to tmp folder for probably some conversion or something, or it's just the temporary upload folder. And it's not going to the tmp Joomla folder where I'm working on it but directly on the server (using Plesk).

Not sure where do I go from here. Can You tell me where can I find the path for that temporary save of the file?
GreyHead 19 May, 2012
Hi zlajonja,

It will probably br the temp folder you have set in your site configuration. What happens is that the server uploads the file to the tmp folder; then the ChronoForms codes moves it to the location siecified in the action. It still looks as though you have permission problems with the folders :-(

If you add a Debugger action you should see the temporary folder path in the debug info.

Bob
zlajonja 21 May, 2012
Hi there,

After hours of research, and trying to find the solution... I've discovered that the upload works with Explorer, Safari, Opera and Mozilla, but NOT on Chrome.😀

So.. now I only need to figure out why it wouldn't work in there.

Any ideas?

Regards,
Z.
GreyHead 21 May, 2012
Hi zlajonja ,

I haven't seen a Chrome problem with uploads reported here :-(

What does the debugger show?

Bob
zlajonja 21 May, 2012
Bob,

Funny thing is that it always says through all browsers that everything passed through without a problem in debugger.. Also I added some other stuff to be printed in debugger, and everything is fine.

I thought at first it might be the add-blocker or some addon, but after turning them all off the problem still exists.😟

Z.
zlajonja 23 May, 2012
Hello there,

after completely uninstalling adblock and some other adons on chrome it worked. Just wanted you to know this cause you might experience some problems with this in the future.

Cheers,
zla

[edit]btw. it worked in incognito mode so this is how i figured it out...😀 [/edit]
GreyHead 23 May, 2012
Hi zla,

Thanks for letting us know - I hadn't seen that problem before.

Bob
zlajonja 24 May, 2012
Hello there,

Just wanted to say that I've tried upload on several computers (5-6) and every had the same problem, and only after uninstalling all addons for Chrome and completely wiping cache the problem disappeared...

Cheers,
zla
GreyHead 25 May, 2012
Hi zla,

Sorry to hear that you have had these problems. I haven't seen any other reports like this so can only suggest that it must be linked to one of your Chrome addons :-(

Bob
This topic is locked and no more replies can be posted.