How to let other users upload files on your website?

Status
This thread has been locked.

34010

Supreme
Feedback score
69
Posts
2,037
Reactions
2,189
Resources
0
Basically, I want to let others upload pictures, videos and text files on my website, and after they uploaded it, it should redirect them to their image's link. How can I do that?
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

34010

Supreme
Feedback score
69
Posts
2,037
Reactions
2,189
Resources
0
Code:
header("Location: <url you want to redirect to>");

Assuming you're using PHP, place that where you want to redirect the user.
Well idk how I can automatically make it know what's the link of the pic and automatically redirect to it. Like, I upload a file named johncena.png, it should redirect to /uploads/johncena.png. How do I make it know the name + extension of the pic so it can redirect to it?
 

mattrick

Web Designer & Developer
Premium
Feedback score
0
Posts
105
Reactions
62
Resources
0
Well idk how I can automatically make it know what's the link of the pic and automatically redirect to it. Like, I upload a file named johncena.png, it should redirect to /uploads/johncena.png. How do I make it know the name + extension of the pic so it can redirect to it?
I'm not sure what the code is you have, so I really can't tell you.
 

34010

Supreme
Feedback score
69
Posts
2,037
Reactions
2,189
Resources
0
I'm not sure what the code is you have, so I really can't tell you.
Imma pm you the code[DOUBLEPOST=1466711200][/DOUBLEPOST]Problem solved, thanks to mattrick.
 
Last edited:
Status
This thread has been locked.
Top