drumnbass.be forum

drumnbass.be forum » Urban area » Drumnbass.be news » Upload trouble
Go to the bottom of this page Upload trouble
Author
Post
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

I promised to have the uploads ready by today but there is a huge problem... I coded everything but when I tried to upload something I always got an error. I found out that my host has put a limit on the uploading, not allowing tracks that are bigger than 2MB Frown

I sent the hosting company a 200-line email about the plans I have with this site, and he suggested to use FTP instead, but that is not an option for me. He promised me an answer by tomorrow.

If it's not possible I will have to move this site to a new host Frown

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
06-11-2002 20:32 Homepage of thechronic
ZARk ZARk is a male
Cool Producer


Registration Date: 04-11-2002
Posts: 128

Helpfulness rating: 
2 Vote(s) - Average Rating: 4.50

well, i'm working on a java applet that would establish a "discreet" ftp connection to make the file transfer.
don't know if you're interested in helping me on the applet. (lot's of work)
so that user just has a "SELECT FILE" box ... the rest of the parameters are sent to the java applet by the php.

__
oooooo yeeeeeeeeeah.
06-11-2002 20:35 Homepage of ZARk
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Don't know Java, sorry...

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
07-11-2002 00:15 Homepage of thechronic
n3wjack n3wjack is a male
Tourist


images/avatars/avatar-15.jpg

Registration Date: 05-11-2002
Posts: 19


maybe you could use this free javabean to upload files through ftp?

http://www.geocities.com/SiliconValley/C...vabean/ftpbean/

I've never used javabeans myself (only ActiveDoped so I don't know how well this works...
07-11-2002 13:23
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

FTP file transfers are no option for this site - I need the files to arrive via HTTP-POST, but maybe it's something for ZARk?

He's probably way ahead anyway, integrating FTP transfers with forms, would be cool Big Grin

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
07-11-2002 22:00 Homepage of thechronic
ZARk ZARk is a male
Cool Producer


Registration Date: 04-11-2002
Posts: 128

Helpfulness rating: 
2 Vote(s) - Average Rating: 4.50

well, i'm also using http-forms with php for the moment ...
but it's a pain for several reasons :
1/ no easy progress detection
2/ no resuming
3/ php script time-outs

right now the only "progress indicator" the user gets is an animated gif that dissapears once the upload is complete.
so i'm thinking about using a php applet...
discussed it on undernet with a couple of other programmers, and they dislike the idea because it would stop people without java from using the upload ...
that's where i use two forms Smile There must be a way to detect JVM using javascript and to re-direct the user to a page or another ....
only one problem .. making the java ... i've only ever made c++.

Only decisions to make is to decide to use ftp (tcp) or ftp (udp) ...

I'll probably won't have time to make the applet though, as the little time i have to spare i need to finish my php scripts, and try debugging some major bugs in my apps ..
(right now, for some reason, one of my forms doesn't do "UPDATE" sql's ... dunno why ... guess i'll re-write it from scratch 'cos i can't find the bug Frown

__
oooooo yeeeeeeeeeah.
07-11-2002 22:13 Homepage of ZARk
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Wooww way to go ZARk Big Grin

Script timeouts can be changed in php.ini, and I might be able to help you with the MySQL stuff, but no guarantees, I only use PHP and MySQL for a couple of months now Big Grin

PM me your query and the MySQL-errors you're getting and I'll have a look.

The other stuff is way beyond me Big Grin

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
08-11-2002 10:32 Homepage of thechronic
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

My host has set my upload limit to 5MB, which means track uploads are now possible Smile )

You wouldn't believe how glad I was to receive this news Big Grin

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
09-11-2002 02:25 Homepage of thechronic
n3wjack n3wjack is a male
Tourist


images/avatars/avatar-15.jpg

Registration Date: 05-11-2002
Posts: 19


so tracks uploaded can't be bigger than 5MB right?

sounds reasonable
09-11-2002 20:55
ZARk ZARk is a male
Cool Producer


Registration Date: 04-11-2002
Posts: 128

Helpfulness rating: 
2 Vote(s) - Average Rating: 4.50

you need help with the uploading ?

i can send you my upload.php if you want .. it's fully commented ...
it even checks for already existing filenames and automatically renames.

__
oooooo yeeeeeeeeeah.
13-11-2002 20:26 Homepage of ZARk
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Hehe no thanks uploading is easy Big Grin

I got to work out the database structures now, but I will depart tomorrow on a heavy 3 days of work, so I won't be seeing my computer until sunday...

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
14-11-2002 02:03 Homepage of thechronic
-J- -J- is a male
Big Bad Battyman


Registration Date: 15-11-2002
Posts: 1,043

Helpfulness rating: 
4 Vote(s) - Average Rating: 9.25

about scripting and coding i don't know shit, but a lil hint for getting your files online under 5MB in a bigger quality
use oggdrop and convert your files to .ogg
way better encoding, your files are waay smaller for the same quality ...

i put it on my webspace so download here !

__
It's a spiritual thing !

17-11-2002 23:22
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Sorry no oggs here for now, not standard enough at the moment. Maybe in the future when the format is accepted as a valid substitute for MP3.

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
18-11-2002 00:23 Homepage of thechronic
-J- -J- is a male
Big Bad Battyman


Registration Date: 15-11-2002
Posts: 1,043

Helpfulness rating: 
4 Vote(s) - Average Rating: 9.25

how come not, it's pretty standard if you ask me
since it plays fine in winamp ... what most people seem to use to play mp3's.
well you're the master, so i'm gonna leave it there, but i don't really get it.
doesn't matter, i think you deserve a very Bigup
for this initiative

__
It's a spiritual thing !

18-11-2002 07:07
thechronic thechronic is a male
admin


images/avatars/avatar-2146.jpg

Registration Date: 01-11-2002
Posts: 5,293

Helpfulness rating: 
38 Vote(s) - Average Rating: 9.68

Ogg Vorbis discussion continues here

__
If you find spam on the site, please hit the button and select my name. I'll personally kick it to the murky depths of hell where it belongs! Devil
18-11-2002 09:18 Homepage of thechronic
ZARk ZARk is a male
Cool Producer


Registration Date: 04-11-2002
Posts: 128

Helpfulness rating: 
2 Vote(s) - Average Rating: 4.50

dude ... for the filenames .. ARGH

you know you can send the filename as a header ?

so just store the filename in the database ...
then do this
php:
1:
header("Content-Disposition: attachment; filename=" $myrow["MEDIA_FILENAME"]);


easy peasy Wink

your welcome Smile

__
oooooo yeeeeeeeeeah.
21-11-2002 17:51 Homepage of ZARk
drumnbass.be forum » Urban area » Drumnbass.be news » Upload trouble