Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 7, 2005, 07:24 AM   #1
BakedBeans
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
FTP Upload

I need to be able to let customers upload to me via my website - they will be fairly large files, anyone know the easiest way for me to set this up?

thanks in advance
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 10:14 AM   #2
grapes911
macrumors 68040
 
grapes911's Avatar
 
Join Date: Jul 2003
Location: East Fallowfield, PA
What language are you using? What languages do you have access to? I'd use ASP .NET to make a web app that would easily do it.

Assuming you can only use HTML: Have you tried a link that uses ftp rather than http? Most browsers support some type of FTP.
The syntax is something like this (it may be a little off though):
ftp://[username]:[password]@your-domain-name.com

Hopefully this will at least get you started.
__________________
I hate sigs, but not as much as I hate "Official" threads started by unofficial people.
grapes911 is offline   Reply With Quote
Old Dec 7, 2005, 10:18 AM   #3
dubbz
macrumors 68020
 
dubbz's Avatar
 
Join Date: Sep 2003
Location: Alta, Norway
Send a message via AIM to dubbz Send a message via MSN to dubbz Send a message via Yahoo to dubbz
I'm not sure if it's any help, but here's some kind of uploader script, with a progress bar even, written using PHP and perl. Mega Upload. Obviously requires that your host support PHP and perl.

And a Multiple file uploader, also written in PHP.
__________________
"If a tree falls in the forest... I'll kill the bastard what done it!" - Jaheira
dubbz is offline   Reply With Quote
Old Dec 7, 2005, 10:19 AM   #4
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
ok, someone's listening

it might help if i tell you what i want (because i have no real idea of the solution)


basically, its a photo retouching website so i need a way for customers to upload there images to me. i would like them just to be able to click 'choose file' and then click 'upload' and it to be send to me and stored by my host

how would i go about that? (talk to me like a baby )
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 10:20 AM   #5
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
Quote:
Originally Posted by dubbz
I'm not sure if it's any help, but here's some kind of uploader script, with a progress bar even, written using PHP and perl. Mega Upload. Obviously requires that your host support PHP and perl.

And a Multiple file uploader, also written in PHP.

thanks ill just take a look... something downloaded and plonked on the page sounds good
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 10:40 AM   #6
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
ok, tried it... to difficult for my simple mind.

Is there nothing that i can download and host that will just work
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 10:47 AM   #7
grapes911
macrumors 68040
 
grapes911's Avatar
 
Join Date: Jul 2003
Location: East Fallowfield, PA
Quote:
Originally Posted by BakedBeans
Is there nothing that i can download and host that will just work
Not that I know of. You're going to need PHP, CGI, ASP, Java, Coldfusion, or something along those lines.
__________________
I hate sigs, but not as much as I hate "Official" threads started by unofficial people.
grapes911 is offline   Reply With Quote
Old Dec 7, 2005, 10:49 AM   #8
grapes911
macrumors 68040
 
grapes911's Avatar
 
Join Date: Jul 2003
Location: East Fallowfield, PA
Here is some javascript code. Looks like you can just paste the code into your website and it will work. You may have to edit it a little. Look like it has a filter on it. I'm not big on javascript though, so I can't give any more info on this.
http://javascript.internet.com/forms/upload-filter.html
__________________
I hate sigs, but not as much as I hate "Official" threads started by unofficial people.
grapes911 is offline   Reply With Quote
Old Dec 7, 2005, 10:53 AM   #9
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
<form method=post name=upform action="/cgi-bin/some-script.cgi" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value="Submit" onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>


looks like i still have to have something in the cgi bin.... any idea what?
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 10:57 AM   #10
grapes911
macrumors 68040
 
grapes911's Avatar
 
Join Date: Jul 2003
Location: East Fallowfield, PA
Quote:
Originally Posted by BakedBeans
<form method=post name=upform action="/cgi-bin/some-script.cgi" enctype="multipart/form-data">
<input type=file name=uploadfile>
<p>
<input type=button name="Submit" value="Submit" onclick="LimitAttach(this.form, this.form.uploadfile.value)">
</form>
</center>


looks like i still have to have something in the cgi bin.... any idea what?
Sorry about that. I guess I should have read all the code before posting.
__________________
I hate sigs, but not as much as I hate "Official" threads started by unofficial people.
grapes911 is offline   Reply With Quote
Old Dec 7, 2005, 11:02 AM   #11
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
Quote:
Originally Posted by grapes911
Sorry about that. I guess I should have read all the code before posting.
no worries, all i have to do is find a cgi script i suppose.

anyone
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 11:31 AM   #12
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
can anyone tell me where ive gone wront (the looks are still the downloaded template btw, i need to get it working first)

Last edited by BakedBeans : Dec 7, 2005 at 05:16 PM.
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 11:37 AM   #13
jeremy.king
macrumors 601
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Yeah you need script.js on your webserver too

Instead of hasseling with a progress bar, change the following in your upload.php file

PHP Code:
        <input type="button" value="Send" onClick="postIt();">
        <!-- 
uncomment the following to test with out the progress bar -->
        <!
input type="submit" value="Send"
to

PHP Code:
<!-- 
<
input type="button" value="Send" onClick="postIt();"
-->
        <!-- 
uncomment the following to test with out the progress bar -->
        <
input type="submit" value="Send"
jeremy.king is offline   Reply With Quote
Old Dec 7, 2005, 11:41 AM   #14
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
the script.js is in the php folder.... thats where it was....
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 11:58 AM   #15
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
ok, its doing something better.... but still not working properly. can you tell me what im doing wrongly now?
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 01:04 PM   #16
jeremy.king
macrumors 601
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Quote:
Originally Posted by BakedBeans
ok, its doing something better.... but still not working properly. can you tell me what im doing wrongly now?
Check your weblogs for error messages. Can't do much from our end without knowing the errors.
jeremy.king is offline   Reply With Quote
Old Dec 7, 2005, 01:16 PM   #17
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
[2005-12-07 13:04:08]: error: file has no execute permission: (/home/algodden/public_html/retouchartists.com/cgi-bin/progress.cgi)
BakedBeans is offline   Reply With Quote
Old Dec 7, 2005, 01:21 PM   #18
jeremy.king
macrumors 601
 
jeremy.king's Avatar
 
Join Date: Jul 2002
Location: Fox Lake, IL
Quote:
Originally Posted by BakedBeans
[2005-12-07 13:04:08]: error: file has no execute permission: (/home/algodden/public_html/retouchartists.com/cgi-bin/progress.cgi)
Make that file executable. Within telnet/ssh session it would be
Code:
chmod 755 /home/algodden/public_html/retouchartists.com/cgi-bin/progress.cgi
Or your webhost may have a gui with which you can do the same. Finally some FTP clients allow you to set permissions as well. Basically make sure Owner has read/write/execute, Group has read/execute, and Other has read/execute.
jeremy.king is offline   Reply With Quote
Old Dec 8, 2005, 04:45 AM   #19
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
i just cant seem to get this to work... and pretty much dont understand what you just said....

becoming annoying now
BakedBeans is offline   Reply With Quote
Old Dec 8, 2005, 06:10 AM   #20
littlejim
macrumors regular
 
Join Date: Jan 2002
Location: Bob Fossils Zooniverse
Quote:
Originally Posted by BakedBeans
i just cant seem to get this to work... and pretty much dont understand what you just said....

becoming annoying now
Probably the easiest way of changing the permissions of a file that you have uploaded is with your FTP client.

I use Cyberduck (get it, it's free).

1. Connect to the FTP site where you upload your files to.
2. Go into the cgi-bin directory
3. Click once on the file progress.cgi
The next three steps are probably specific to Cyberduck but I'm sure your FTP client will have a similar way of doing things
4. Do a File->Get Info (Command I)
5. In the Dialog Box, Check all 3 boxes for 'Owner', and Read and Execute boxes for 'Group' and 'Others'
6. Click 'Apply'

Hopefully that will get you a bit further.
__________________
Blue Pants, Blue Pants, I've got baby Blue Pants. The Mighty Boosh
I Audioscrobble
littlejim is offline   Reply With Quote
Old Dec 9, 2005, 08:08 AM   #21
BakedBeans
Thread Starter
Banned
 
BakedBeans's Avatar
 
Join Date: May 2004
Location: What's Your Favorite Posish
i will pay someone to sort this out for me?

i just need to upload files from a webpage.... HELP
BakedBeans is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:57 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC