RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
XUpload not posting to new url using php

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
ripclaw



Joined: 10 Mar 2007
Posts: 4

PostPosted: Mar 10, 2007 12:13 am    Post subject: XUpload not posting to new url using php Reply with quote

Hi,

I'm trying to use php to upload a file as well as post user input from a single page. Without Xupload, the php page works fine, and posts the data to itself. However, with Xupload I figured that I have to create two seperate php files, one to accept user input, and the second to parse the user input. I integrated code from the upload_form.html into my first php file. I configured XUploadConfig.pm to url_post to my second php file. However, it doesn't seem to be working.

This is what I have in my first php file:

<form enctype="multipart/form-data" action="http://laashaikhlinux/cgi-bin/xupload/upload.cgi?upload_id=" method="POST" name="F1" onS
ubmit="return StartUpload();" target="upload">

The upload progress bar works fine, it's just the url_post doesn't work. Any suggestions? TIA!
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Mar 12, 2007 7:43 am    Post subject: Reply with quote

XUpload Free or Pro?
Are you sured there's no error happens inside upload.cgi after upload complete? Make 'upload' iframe visible(remove style=...) and see what's inside it.
Back to top
View user's profile Send private message Visit poster's website
ripclaw



Joined: 10 Mar 2007
Posts: 4

PostPosted: Mar 12, 2007 7:06 pm    Post subject: Reply with quote

I don't see any errors. I see all the post information. It doesn't call the second.php file. It just reloads the original one with the post information. I pasted the output information below. I am using XUpload Free. Thanks.

Content-type: text/html
New Horizons Courses.txt
New Horizons Courses.txt
OK
Active Directory
524288
on
3
Submit/Save
uploads
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Mar 13, 2007 7:40 am    Post subject: Reply with quote

Hmm...do you have url_post hidden field in your HTML form?
PM me URL to your upload form if it's available.
Back to top
View user's profile Send private message Visit poster's website
ripclaw



Joined: 10 Mar 2007
Posts: 4

PostPosted: Mar 13, 2007 10:40 pm    Post subject: Reply with quote

Nevermind. I read your FAQ and it fixed my problem. Weird, I didn't notice it there before. The problem was the submit button had the name of submit. I renamed it to submit1 and it fixed it. Thanks again!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group