Uploading images to a specific directory on the server.

Started by Stranger, Aug 02, 2022, 03:16 AM

Previous topic - Next topic

StrangerTopic starter

A task has arisen. Is it possible to find ready-made scripts somewhere, with the help of which the upload to the server takes place and a link to the uploaded file is issued, following the pattern of conventional image hosting.
Well, or as close as possible in terms of functionality to this. So that the main checks were written and such and such.
Can you tell me?
  •  

Newport

File manager or what?  ;D
There are many of them on the Internet, both paid and free.
In my opinion, uploading files to the server is perfectly organized in WP.
In the sizes allowed by the hosting provider.
  •  

StrangerTopic starter

Quote from: Newport on Aug 02, 2022, 04:17 AMFile manager or what?

Not quite sure what it is called file manager. I can't find anything related to this query.
This is not a file manager script that can be found on the internet.
I need the user to be able to log in, upload an image file to the server in a certain form, and get a public link. Which could then be sent to social networks, posted on another resource. Everything seems to be simple.
  •  

_AnnA_

Quote from: Stranger on Aug 02, 2022, 05:42 AMI can't find anything related to this query.

Perfect fit
https://phphq.net/php-scripts?script=phUploader&script=phUploader#phUploader

Try it. Let me know how it went. :)
  •  

Newport

_AnnA_, I also checked. It works.

You cannot view this attachment.

Now we need a script that displays the received address in a convenient form for downloading by the user. Well, in order to be able to immediately share on Facebook, Instagram, and other social networks.
Agree, in this form to give: http://portalsphere.free.fr/phUploader/uploads/1659505256.jpg - not comme il faut.
Well, I think so. Maybe Stranger has it all, I don't know.


Post Merge: Aug 02, 2022, 09:50 AM


Quote from: Newport on Aug 02, 2022, 07:33 AMWell, in order to be able to immediately share on Facebook, Instagram, and other social networks.

Did you mean this?

You cannot view this attachment.

The author's site is no longer working, I will give a machine translation.
CF ImageHost.
Script for organizing image hosting. Easy installation and control of photo hosting (sharing). With features such as preview generation, social media link generation for each individual image, image hosting.

Through the admin panel, you can get detailed data on traffic usage. A very important feature: pictures that have not been viewed for the number of days you set are automatically deleted, thereby freeing up storage space. You can overlay your site's watermark in the form of text or an image.

You can enable the option to allow users to use your "short" URL links using services like - bit.ly, yourls, is.gd, tinyurl.com, etc.

Sitemap generation (for Google, Bing...)
English is supported. And if the cookie function is enabled, then the user will not need to select a language the next time.
RSS Feed for the last 10 uploaded images.
MySQL database is not required.
Support for .jpeg , .jpg , .bmp , .gif , .png and photoshop .psd format.
Checking uploaded files for MIME type and their extension.

We pick up here.

Enjoy.
  •  

_AnnA_

Quote from: Newport on Aug 02, 2022, 07:33 AMWell, in order to be able to immediately share on Facebook, Instagram, and other social networks.

Did you mean this?

You cannot view this attachment.

The author's site is no longer working, I will give a machine translation.
CF ImageHost.
Script for organizing image hosting. Easy installation and control of photo hosting (sharing). With features such as preview generation, social media link generation for each individual image, image hosting.

Through the admin panel, you can get detailed data on traffic usage. A very important feature: pictures that have not been viewed for the number of days you set are automatically deleted, thereby freeing up storage space. You can overlay your site's watermark in the form of text or an image.

You can enable the option to allow users to use your "short" URL links using services like - bit.ly, yourls, is.gd, tinyurl.com, etc.

Sitemap generation (for Google, Bing...)
English is supported. And if the cookie function is enabled, then the user will not need to select a language the next time.
RSS Feed for the last 10 uploaded images.
MySQL database is not required.
Support for .jpeg , .jpg , .bmp , .gif , .png and photoshop .psd format.
Checking uploaded files for MIME type and their extension.

We pick up here.

Enjoy.
  •  

StrangerTopic starter

Quote from: _AnnA_ on Aug 02, 2022, 06:34 AMTry it. Let me know how it went.

Thank you very much, Anna.
Exactly what is needed.

The second script is also very useful.
  •