Upload problem

dennisg 03 Apr, 2008
I'm using Joomla 1.5.x and CFV2.5J1.5.

I've followed the FAQ and scanned the Forums for help but still get the error, "You are not allowed to access this URL directly, POST array is empty" when trying to upload a file.

In "General Tab" I have: enctype="multipart/form-data"
In Form Code" I have:

<input name="datafile" id="datafile" size="40" type="file">
<br>
<input value="Send" type="submit">
<input value="Start over" type="reset">

And In "File Uploads" I have:
Enable Uploads: YES
Field names and extensions: datafile:zip
Max allow: 4000
Min allow: 1

What am I missing????
GreyHead 03 Apr, 2008
Hi dennisg,

That all looks good. Try adding an hidden field so that the $_POST array has something other than submit & reset:
<input type='hidden' name='dummy' />
See if that will do the trick.

If not, please take a Form Backup from the Forms Manager and post it here or email to to the address in my sig and I'll take a look (may take a while I'm very busy right now).

Bob<br><br>Post edited by: GreyHead, at: 2008/04/03 20:39
dennisg 04 Apr, 2008
That did the trick! Now I can move on.
Thanks!
studiogrynn 07 Apr, 2009
Greetings Bob!
So far, I have found this to be an amazing component. Thank you for all your hard work. I have confidence the issue I am about it post will be resolved, so I have registered the component.
I have created two test forms.
[list]Email address submission with an extra hidden field
File Upload with Email[/list].

The first issue on both form was the "You are not allowed to access this URL" so I commented out:

      //if(!JRequest::checkToken()){
         //echo "You are not allowed to access this URL";
         //return;
      //}


Now the "
You are not allowed to access this URL directly, POST array is empty " is occurring.
I have attached a backup of the file upload form.

Edit:
It seems that I am unable to get the backup file to attach to the post, so let me know if you need it and I will email it to you.
GreyHead 07 Apr, 2009
Hi studiogrynn,

No attachment - it needs to be zipped or renamed to a .txt file to be uploaded

Bob
studiogrynn 07 Apr, 2009
Bob,
File has been renamed and is attached.

John
GreyHead 08 Apr, 2009
Hi John,

As far as I can see the form works OK, I added enctype="mulitpart/form-data" in the Form Tag Attachement box on the General Tab as this is usually needed with IE.

Please check the File Uploads tutorial in the Downloads area here.

Bob
studiogrynn 08 Apr, 2009
Bob,
Originally the forms were built using the tuts. I had tried it with and without the tags without success.
Also, your test email did arrive. That was good news.
I'll add the tag again and give it another try.
studiogrynn 08 Apr, 2009
The issue still exists.
Are there any known conflicts with other components/modules/plug-ins?

I do not have sef urls active.
GreyHead 08 Apr, 2009
Hi studiogrynn,

There's always the possibility of conflicts but the file uploads are pretty basic and not especially prone to them. You can add &tmpl=component to the url to check just the form

Bob
studiogrynn 08 Apr, 2009
Bob,
Thanks for your continued efforts on this.

Adding &tmpl=component to the end of the url did separate the component from the Joomla! front-end, but did not resolve the issue. So we are making headway.

Any expected PHP settings other than Joomla!'s default requirements?

Also, just a reminder that the "checkToken" issue exists too.

John
Max_admin 09 Apr, 2009
Hi John,

the "You are not allowed to access this URL directly, POST array is empty" error means that the form was submitted empty which is impossible because there is at least the token field, are you sure you don't have any form tags in your code ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 09 Apr, 2009
Hi John,

Nothing obvious - email or PM me a SuperAdmin login and I'll take a look if you like.

Bob
studiogrynn 24 Apr, 2009
Bob,
I sent you admin access a while back, but it looks like you have not had an opportunity to log in. Any idea when that might happen? I would really like to get this resolved so I can move forward with new form development.
GreyHead 24 Apr, 2009
Hi studiogrynn,

I should get there soon - I've had a client visiting for a few days and haven't been on-line much at all, I'm working steadily through the backlog now.

Bob
GreyHead 24 Apr, 2009
Hi Studiogrynn,

I did take a look back on 10 April - but got "Connection Refused" and sent an email saying that.

I've just spent half-an-hour or so digging around and can't work out what is happening. The error message is correct - the $_POST array is empty by the time the ChronoForms code executes so there are no form results left to do anything with.

I tried this with a new form and exactly the same thing happens so it isn't a form html problem. I have no real idea where else to look. Perhaps your ISP might have a suggestion?

I have amended the code so that execution continues if DeBug is enabled and you can see from the DeBug report that both the $_POST and $_FILES arrays are empty.

Bob
studiogrynn 27 Apr, 2009
I did see that you were in the back-end. Did you find any resolutions or identify the cause?
GreyHead 27 Apr, 2009
Hi studiogrynn,

No - see my last post I've absolutely no idea why the result arrays are empty, never seen that before. It is kind of fundamental that the values get passed through.

I suppose the next step would be to dig into the Joomla core code and see if something there is tripping some kind of alarm??

Bob
studiogrynn 27 Apr, 2009
Bob,
Sorry about not seeing your post. I came to this thread and found no comments. I must have been viewing a cached page.

Thanks for digging into this.

Perhaps your ISP might have a suggestion?


We host our own servers. I'll put the code on another clean-site on the same server. Maybe we can isolate this to something server related or maybe a conflict on the affected site.
ctasada 01 Jul, 2009
Hi guys,

I'm having the same problem "you are not allowed to access this url". But only happens with files bigger than 2MB, could be related with some timeout?

Thanks.
Max_admin 02 Jul, 2009
Hi ctasada,

Try to disable the "checkToken" under the general tab or search the forums for "keepalive"

regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
ctasada 03 Jul, 2009
Hi Max,

I found a message that recommends inserting <?php echo JHTML::_('behavior.keepalive'); ?> at the top of the form. Doing that I still have the same problem😟

I've also tried to disable the checkTokens. Then I don't get the message, but the file isn't uploaded either and the notification email arrives empty😟

What else can I try?

Thanks.
Max_admin 04 Jul, 2009
how long does it take to upload this file ? try to increase the session life time a little under the Joomla global config ?

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.